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

Unified Diff: test/mjsunit/harmony/destructuring-assignment-lazy.js

Issue 1544483002: [es6] use correct --harmony-destructuring-assignment flag when preparsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/parsing/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/destructuring-assignment-lazy.js
diff --git a/test/mjsunit/compiler/regress-variable-liveness-let.js b/test/mjsunit/harmony/destructuring-assignment-lazy.js
similarity index 50%
copy from test/mjsunit/compiler/regress-variable-liveness-let.js
copy to test/mjsunit/harmony/destructuring-assignment-lazy.js
index 4c6b6936e58543844ec2684d56abd898217ce6cd..8915eb97a39957400059eee2545eb7c48cefe47c 100644
--- a/test/mjsunit/compiler/regress-variable-liveness-let.js
+++ b/test/mjsunit/harmony/destructuring-assignment-lazy.js
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --turbo-filter=f
-
-"use strict";
+// Flags: --harmony-destructuring-assignment --harmony-destructuring-bind
+// Flags: --min-preparse-length=0
function f() {
- %DeoptimizeNow();
- let x = 23;
+ var a, b;
+ [ a, b ] = [1, 2];
+ assertEquals(1, a);
+ assertEquals(2, b);
}
-%OptimizeFunctionOnNextCall(f);
f();
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698