Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Issue 899363002: Allow eval and arguments as property names (Closed)

Created:
5 years, 10 months ago by arv (Not doing code reviews)
Modified:
5 years, 10 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://crrev.com/64abe65210adde13cb83aa0d3e747babd9979da8 Cr-Commit-Position: refs/heads/master@{#26497}

Patch Set 1 #

Patch Set 2 : expand test #

Total comments: 2

Patch Set 3 : Cleanup based on code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -65 lines) Patch
M src/parser.cc View 1 2 3 chunks +16 lines, -19 lines 0 comments Download
M src/preparser.h View 1 2 4 chunks +32 lines, -17 lines 0 comments Download
M src/preparser.cc View 1 2 1 chunk +9 lines, -29 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 chunk +45 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/class-property-name-eval-arguments.js View 1 1 chunk +79 lines, -0 lines 0 comments Download
A test/mjsunit/harmony/method-name-eval-arguments.js View 1 chunk +35 lines, -0 lines 0 comments Download
A test/mjsunit/property-name-eval-arguments.js View 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
arv (Not doing code reviews)
expand test
5 years, 10 months ago (2015-02-06 00:00:44 UTC) #1
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/899363002/diff/20001/src/preparser.cc File src/preparser.cc (right): https://codereview.chromium.org/899363002/diff/20001/src/preparser.cc#newcode949 src/preparser.cc:949: CheckStrictFunctionParameters(eval_args_error_loc, dupe_error_loc, Another option might be to pass ...
5 years, 10 months ago (2015-02-06 00:03:55 UTC) #2
adamk
https://codereview.chromium.org/899363002/diff/20001/src/preparser.cc File src/preparser.cc (right): https://codereview.chromium.org/899363002/diff/20001/src/preparser.cc#newcode949 src/preparser.cc:949: CheckStrictFunctionParameters(eval_args_error_loc, dupe_error_loc, On 2015/02/06 00:03:55, arv wrote: > Another ...
5 years, 10 months ago (2015-02-06 00:23:58 UTC) #3
arv (Not doing code reviews)
Cleanup based on code review
5 years, 10 months ago (2015-02-06 17:00:03 UTC) #4
arv (Not doing code reviews)
PTAL There is some cleanup opportunities with how arrow functions checks their paramaters but I ...
5 years, 10 months ago (2015-02-06 17:03:34 UTC) #5
adamk
lgtm
5 years, 10 months ago (2015-02-06 17:11:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/899363002/40001
5 years, 10 months ago (2015-02-06 17:41:14 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-06 18:04:17 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 18:04:33 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/64abe65210adde13cb83aa0d3e747babd9979da8
Cr-Commit-Position: refs/heads/master@{#26497}

Powered by Google App Engine
This is Rietveld 408576698