Reviewers: rossberg,

Description:
Slightly improve tests that rely on lazy compilation.

[email protected]
BUG=v8:3712
LOG=N

Please review this at https://codereview.chromium.org/743843003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+2, -2 lines):
  M test/mjsunit/function-length-accessor.js
  M test/mjsunit/regress/regress-2506.js


Index: test/mjsunit/function-length-accessor.js
diff --git a/test/mjsunit/function-length-accessor.js b/test/mjsunit/function-length-accessor.js index 357ac3fdff7084f60abbb37121a282b32a7bf4d8..97c9f65822098465e30bb44dc548b3ecc915c3d0 100644
--- a/test/mjsunit/function-length-accessor.js
+++ b/test/mjsunit/function-length-accessor.js
@@ -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: test/mjsunit/regress/regress-2506.js
diff --git a/test/mjsunit/regress/regress-2506.js b/test/mjsunit/regress/regress-2506.js index e6b37d3fdbb1305d81aa6e06c1970322f8745a54..45f7868b94e8ca21556ef2c0711224af077c8b71 100644
--- a/test/mjsunit/regress/regress-2506.js
+++ b/test/mjsunit/regress/regress-2506.js
@@ -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("for(const x in [1,2,3]) { x++ }", SyntaxError);

 // Function scope
 (function() {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to