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

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

Issue 1425723004: Properly handle parsing a '%'-prefixed runtime call as a binding pattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/preparser.h ('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-552302.js
diff --git a/test/message/arrow-param-after-rest-2.js b/test/mjsunit/regress/regress-552302.js
similarity index 58%
copy from test/message/arrow-param-after-rest-2.js
copy to test/mjsunit/regress/regress-552302.js
index c01cec8ad4f412c97797e07e946d1730a6513bcc..d4a1f2448ee2d3f8c77cea5b37db47b042e04bad 100644
--- a/test/message/arrow-param-after-rest-2.js
+++ b/test/mjsunit/regress/regress-552302.js
@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-rest-parameters
+// Flags: --harmony-destructuring --allow-natives-syntax
-(w, ...x, y) => 10
+assertThrows('var %OptimizeFunctionOnNextCall()', SyntaxError);
« no previous file with comments | « src/preparser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698