[parser] report SyntaxError if rest parameter used in Setter MethodDefinition
authorcaitpotter88 <caitpotter88@gmail.com>
Mon, 18 May 2015 15:52:57 +0000 (08:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 May 2015 15:52:45 +0000 (15:52 +0000)
commite160e6debb5c1b8df9faafeb8e18763b3ecedc90
tree5602c1854b82c1fd18cdf611a92ba5e4136dc294
parent5bd4f9dd5a7f27042acbf845b3f84a32bc6c179e
[parser] report SyntaxError if rest parameter used in Setter MethodDefinition

BUG=v8:4107, v8:2159
LOG=N
R=arv@chromium.org

Review URL: https://codereview.chromium.org/1141223002

Cr-Commit-Position: refs/heads/master@{#28454}
src/messages.h
src/parser.cc
src/preparser.cc
src/preparser.h
test/cctest/test-parsing.cc
test/message/rest-param-class-setter-strict.js [new file with mode: 0644]
test/message/rest-param-class-setter-strict.out [new file with mode: 0644]
test/message/rest-param-object-setter-sloppy.js [new file with mode: 0644]
test/message/rest-param-object-setter-sloppy.out [new file with mode: 0644]
test/message/rest-param-object-setter-strict.js [new file with mode: 0644]
test/message/rest-param-object-setter-strict.out [new file with mode: 0644]