Slightly improve tests that rely on lazy compilation.
authoryangguo <yangguo@chromium.org>
Fri, 21 Nov 2014 12:40:53 +0000 (04:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Nov 2014 12:41:06 +0000 (12:41 +0000)
R=rossberg@chromium.org
BUG=v8:3712
LOG=N

Review URL: https://codereview.chromium.org/743843003

Cr-Commit-Position: refs/heads/master@{#25463}

test/mjsunit/function-length-accessor.js
test/mjsunit/regress/regress-2506.js

index 357ac3fdff7084f60abbb37121a282b32a7bf4d8..97c9f65822098465e30bb44dc548b3ecc915c3d0 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-// Flags: --harmony-scoping
+// Flags: --harmony-scoping --lazy
 
 function foo(a, b, c, d) {
   "use strict"
index e6b37d3fdbb1305d81aa6e06c1970322f8745a54..ee84392a46b60491bb6d324e7224838f49943839 100644 (file)
@@ -46,7 +46,7 @@ for (const x in [1,2,3]) {
 }
 assertEquals("012", s);
 
-assertThrows(function() { for(const x in [1,2,3]) { x++ } }, SyntaxError);
+assertThrows("'use strict'; for (const x in [1,2,3]) { x++ }", SyntaxError);
 
 // Function scope
 (function() {