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

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

Issue 2290753003: Allow lexically declared "arguments" in function scope in sloppy mode. (Closed)
Patch Set: clang format Created 4 years, 3 months 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/bugs/bug-4577.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-4577.js
diff --git a/test/mjsunit/bugs/bug-4577.js b/test/mjsunit/regress/regress-4577.js
similarity index 68%
rename from test/mjsunit/bugs/bug-4577.js
rename to test/mjsunit/regress/regress-4577.js
index de2f843965de8f0da6244334e722194a4353008f..ea46fdd2b0dd4323f8b15cf89ca633521ec4e103 100644
--- a/test/mjsunit/bugs/bug-4577.js
+++ b/test/mjsunit/regress/regress-4577.js
@@ -11,3 +11,11 @@ function g({arguments}) {
return arguments === 42;
}
assertTrue(g({arguments: 42}));
+
+function foo() {
+ let arguments = 2;
+ return arguments;
+}
+assertEquals(2, foo());
+
+assertThrows(function(x = arguments, arguments) {}, ReferenceError);
« no previous file with comments | « test/mjsunit/bugs/bug-4577.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698