636cb4f365
This commit is a precursor to making lazy arrow function parsing use similar logic to function(){} argument parsing. Originally landed in these three CLs: https://codereview.chromium.org/1078093002 https://codereview.chromium.org/1083623002 https://codereview.chromium.org/1083953002 These were rolled out due to a performance regression on CodeLoad. This patchset will fix that by avoiding creation of a DuplicateFinder in the full parser. R=marja@chromium.org BUG= LOG=N Review URL: https://codereview.chromium.org/1100713002 Cr-Commit-Position: refs/heads/master@{#27960}
5 lines
187 B
Plaintext
5 lines
187 B
Plaintext
*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter
|
|
function foo(...b, a) { return a }
|
|
^
|
|
SyntaxError: Rest parameter must be last formal parameter
|