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

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

Issue 11607016: Simplify implementation of assignment-to-const checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 8 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/x64/full-codegen-x64.cc ('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-2243.js
diff --git a/test/mjsunit/regress/regress-2322.js b/test/mjsunit/regress/regress-2243.js
similarity index 90%
copy from test/mjsunit/regress/regress-2322.js
copy to test/mjsunit/regress/regress-2243.js
index 1195bab67cb6b9123e93c3bd32135e972799e876..cdae91f3e67af8fe6b988803e47c826d344bacab 100644
--- a/test/mjsunit/regress/regress-2322.js
+++ b/test/mjsunit/regress/regress-2243.js
@@ -27,10 +27,5 @@
// Flags: --harmony-scoping
-"use strict";
-
-assertThrows("'use strict'; for (let x in x);", ReferenceError);
-
-let s;
-for (let pppp in {}) {};
-assertThrows(function() { pppp = true }, ReferenceError);
+assertThrows("'use strict'; (function fooob() { fooob = 123; })", SyntaxError);
+assertThrows("(function f() { 'use strict'; f = 123; })", SyntaxError);
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698