[es6] support `get` and `set` in shorthand properties
authorcaitpotter88 <caitpotter88@gmail.com>
Wed, 16 Sep 2015 16:01:47 +0000 (09:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Sep 2015 16:02:05 +0000 (16:02 +0000)
commitb444da41ad9ef32cea08fd24fd89eab258cd1360
treebb71209790e9403871b7a32932993840d919f937
parentafba4792dff0b423c4beae905ac3c40da8fec22e
[es6] support `get` and `set` in shorthand properties

Add support for `get` and `set` as shorthand properties. Also
supports them for CoverInitializedName in BindingPatterns and (once implemented)
AssignmentPatterns.

BUG=v8:4412, v8:3584
LOG=N
R=adamk, aperez, wingo, rossberg

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

Cr-Commit-Position: refs/heads/master@{#30769}
src/preparser.h
test/cctest/test-parsing.cc
test/mjsunit/es6/object-literals-property-shorthand.js
test/mjsunit/harmony/destructuring.js