Index: test/mjsunit/regress/regress-eval-context.js |
diff --git a/test/mjsunit/compiler/regress-469089.js b/test/mjsunit/regress/regress-eval-context.js |
similarity index 53% |
copy from test/mjsunit/compiler/regress-469089.js |
copy to test/mjsunit/regress/regress-eval-context.js |
index 6aff2b720305290570124cec0dd7a4a959f05694..e3762824612b860b6f702d6de9043e209fdb7611 100644 |
--- a/test/mjsunit/compiler/regress-469089.js |
+++ b/test/mjsunit/regress/regress-eval-context.js |
@@ -2,15 +2,19 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --expose-gc |
- |
(function() { |
- var __v_6 = false; |
- function f(val, idx) { |
- if (idx === 1) { |
- gc(); |
- __v_6 = (val === 0); |
- } |
+ 'use strict'; |
+ var x = 0; |
+ |
+ { |
+ let x = 1; |
+ assertEquals(1, eval("x")); |
} |
- f(.1, 1); |
+ |
+ { |
+ let y = 2; |
+ assertEquals(0, eval("x")); |
+ } |
+ |
+ assertEquals(0, eval("x")); |
})(); |