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

Unified Diff: test/mjsunit/regress/regress-2506.js

Issue 743843003: Slightly improve tests that rely on lazy compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: strict mode Created 6 years, 1 month 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 | « test/mjsunit/function-length-accessor.js ('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-2506.js
diff --git a/test/mjsunit/regress/regress-2506.js b/test/mjsunit/regress/regress-2506.js
index e6b37d3fdbb1305d81aa6e06c1970322f8745a54..ee84392a46b60491bb6d324e7224838f49943839 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("'use strict'; for (const x in [1,2,3]) { x++ }", SyntaxError);
// Function scope
(function() {
« no previous file with comments | « test/mjsunit/function-length-accessor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698