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

Unified Diff: test/mjsunit/bugs/bug-4577.js

Issue 2304853002: Revert of Allow lexically declared "arguments" in function scope in sloppy mode. (Closed)
Patch Set: 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/cctest/test-parsing.cc ('k') | test/mjsunit/regress/regress-4577.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/bugs/bug-4577.js
diff --git a/test/mjsunit/bugs/bug-4577.js b/test/mjsunit/bugs/bug-4577.js
new file mode 100644
index 0000000000000000000000000000000000000000..de2f843965de8f0da6244334e722194a4353008f
--- /dev/null
+++ b/test/mjsunit/bugs/bug-4577.js
@@ -0,0 +1,13 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function f(...arguments) {
+ return Array.isArray(arguments);
+}
+assertTrue(f());
+
+function g({arguments}) {
+ return arguments === 42;
+}
+assertTrue(g({arguments: 42}));
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/regress/regress-4577.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698