ES6: Implement object literal property shorthand
authorarv@chromium.org <arv@chromium.org>
Mon, 29 Sep 2014 14:15:48 +0000 (14:15 +0000)
committerarv@chromium.org <arv@chromium.org>
Mon, 29 Sep 2014 14:15:48 +0000 (14:15 +0000)
commita36dee4d14d2e081d73ccbc35ee38d13dee6ee04
tree30fd5a407c2f9720789417f98b39bce17760754a
parentec209c7721dded952bf0e153edb0853b218638da
ES6: Implement object literal property shorthand

This allows the following:

var x = 1;
var o = {x};

This is under the --harmony-object-literals flag.

BUG=v8:3584
LOG=y
R=marja@chromium.org, rossberg@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24291 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/preparser.h
src/token.h
test/cctest/test-parsing.cc
test/mjsunit/harmony/object-literals-property-shorthand.js [new file with mode: 0644]