Chromium Code Reviews

Side by Side Diff: test/message/strict-formal-parameters.out

Issue 1236863008: Improve error message for duplicate parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arrow function test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 *%(basename)s:6: SyntaxError: Strict mode function may not have duplicate parame ter names 1 *%(basename)s:6: SyntaxError: Duplicate parameter name not allowed in this conte xt
2 function foo(b, a, a, d) { return a } 2 function foo(b, a, a, d) { return a }
3 ^ 3 ^
4 SyntaxError: Strict mode function may not have duplicate parameter names 4 SyntaxError: Duplicate parameter name not allowed in this context
OLDNEW
« test/message/arrow-formal-parameters.js ('K') | « test/message/arrow-formal-parameters.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine