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

Unified Diff: test/message/arrow-param-after-rest-2.out

Issue 1178523002: Support rest parameters in arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix error locations for param-after-rest errors Created 5 years, 6 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
Index: test/message/arrow-param-after-rest-2.out
diff --git a/test/message/formal-parameters-bad-rest.out b/test/message/arrow-param-after-rest-2.out
similarity index 71%
copy from test/message/formal-parameters-bad-rest.out
copy to test/message/arrow-param-after-rest-2.out
index 562b6ad49dd3600ef8dcee216c15b4fb83bc5208..27785cfb02a85051aa217acf36c4743ca4a8779a 100644
--- a/test/message/formal-parameters-bad-rest.out
+++ b/test/message/arrow-param-after-rest-2.out
@@ -1,4 +1,4 @@
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
-function foo(...b, a) { return a }
- ^
+(w, ...x, y) => 10
+ ^
SyntaxError: Rest parameter must be last formal parameter

Powered by Google App Engine
This is Rietveld 408576698