eb0593e137
For top-level code the closure passed into context allocation methods needs to be replaced with a sentinel to canonicalize is to the empty function object. R=bmeurer@chromium.org TEST=mjsunit/regress/regress-4169 BUG=v8:4169 LOG=N Review URL: https://codereview.chromium.org/1172013002 Cr-Commit-Position: refs/heads/master@{#28888}
10 lines
248 B
JavaScript
10 lines
248 B
JavaScript
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
with ({}) {
|
|
eval("var x = 23");
|
|
assertEquals(23, x);
|
|
}
|
|
assertEquals(23, x);
|