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(); |