Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: test/mjsunit/regress/regress-eval-context.js

Issue 1169853006: [turbofan] Fix one mean typo in kResolvePossiblyDirectEval. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-reducer-3
Patch Set: Addressed comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"));
})();
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698