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

Unified Diff: test/mjsunit/regress/regress-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/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/regress/regress-4577.js b/test/mjsunit/regress/regress-4577.js
deleted file mode 100644
index ea46fdd2b0dd4323f8b15cf89ca633521ec4e103..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-4577.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// 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}));
-
-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