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

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

Issue 1576503002: Add test showing broken-ness of non-simple parameter named 'arguments' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | 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/compiler/regress-ntl-effect.js b/test/mjsunit/bugs/bug-4577.js
similarity index 51%
copy from test/mjsunit/compiler/regress-ntl-effect.js
copy to test/mjsunit/bugs/bug-4577.js
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..de2f843965de8f0da6244334e722194a4353008f 100644
--- a/test/mjsunit/compiler/regress-ntl-effect.js
+++ b/test/mjsunit/bugs/bug-4577.js
@@ -2,15 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
-
-function g() {
- throw 0;
+function f(...arguments) {
+ return Array.isArray(arguments);
}
+assertTrue(f());
-function f() {
- g();
- while (1) {}
+function g({arguments}) {
+ return arguments === 42;
}
-
-assertThrows(function () { f(); });
+assertTrue(g({arguments: 42}));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698