Allow eval and arguments as property names
authorarv <arv@chromium.org>
Fri, 6 Feb 2015 18:04:11 +0000 (10:04 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Feb 2015 18:04:21 +0000 (18:04 +0000)
commit64abe65210adde13cb83aa0d3e747babd9979da8
tree1071e888b6d0c9cd3802cba727080014d119c1ac
parent70079dab1386d1b5ffc80d05591597d015aeffde
Allow eval and arguments as property names

We incorrectly disallowed eval and arguments in accessor and method
names. This was because we checked the name inside the
ParseFunctionLiteral. We now flag accessors so that lazy parsing of
these functions are treated correctly.

BUG=v8:1984
R=adamk, dslomov@chromium.org
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#26497}
src/parser.cc
src/preparser.cc
src/preparser.h
test/cctest/test-parsing.cc
test/mjsunit/harmony/class-property-name-eval-arguments.js [new file with mode: 0644]
test/mjsunit/harmony/method-name-eval-arguments.js [new file with mode: 0644]
test/mjsunit/property-name-eval-arguments.js [new file with mode: 0644]