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

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

Issue 2362463003: Declare the arguments object before creating the function var, to make sure it masks it (Closed)
Patch Set: Add comment 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 | « src/parsing/parser.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-649067.js
diff --git a/test/message/arrow-invalid-rest-2.js b/test/mjsunit/regress/regress-649067.js
similarity index 68%
copy from test/message/arrow-invalid-rest-2.js
copy to test/mjsunit/regress/regress-649067.js
index 3517803d30256b09e78a1aa1f43817e733dc060e..cd75004230ad4b0ce5c69d521090f54e64db3db0 100644
--- a/test/message/arrow-invalid-rest-2.js
+++ b/test/mjsunit/regress/regress-649067.js
@@ -1,8 +1,5 @@
// Copyright 2016 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.
-//
-//
-var f = (a, ...x = 10) => x;
-f(1, 2, 3, 4, 5);
+assertEquals(1, (function arguments() { return eval("arguments"); })(1)[0]);
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698