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

Issue 329413002: Throw syntax error when a getter/setter has the wrong number of params (Closed)

Created:
6 years, 6 months ago by arv (Not doing code reviews)
Modified:
6 years, 6 months ago
Reviewers:
rossberg, marja
CC:
v8-dev, adamk, wingo
Visibility:
Public.

Description

Throw syntax error when a getter/setter has the wrong number of params We used to allow any number of parameters in getters and setters to match JSC. This is a violation of ES5.1 and both SpiderMonkey and Chakra throw on these syntax errors. BUG=v8:3371 LOG=Y R=marja@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21868

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : #

Patch Set 4 : Add test exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -59 lines) Patch
M src/ast.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/parser.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/parser.cc View 1 6 chunks +16 lines, -2 lines 0 comments Download
M src/preparser.h View 1 4 chunks +5 lines, -2 lines 0 comments Download
M src/preparser.cc View 1 6 chunks +10 lines, -5 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +19 lines, -17 lines 0 comments Download
M test/mozilla/mozilla.status View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M test/preparser/duplicate-property.pyt View 1 chunk +1 line, -1 line 0 comments Download
M test/webkit/for-in-cached.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/for-in-cached-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/object-literal-direct-put.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/object-literal-direct-put-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/object-literal-syntax.js View 1 chunk +12 lines, -12 lines 0 comments Download
M test/webkit/object-literal-syntax-expected.txt View 1 chunk +12 lines, -12 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
arv (Not doing code reviews)
cleanup
6 years, 6 months ago (2014-06-11 23:28:30 UTC) #1
arv (Not doing code reviews)
cleanup
6 years, 6 months ago (2014-06-11 23:32:33 UTC) #2
arv (Not doing code reviews)
PTAL I'm also disabling the tests in Blink and will reenable them once this has ...
6 years, 6 months ago (2014-06-11 23:35:34 UTC) #3
marja
Code LGTM. Looks like a reasonable thing to do. There might be some surprising breakage ...
6 years, 6 months ago (2014-06-12 07:25:14 UTC) #4
marja
Code LGTM. Looks like a reasonable thing to do. There might be some surprising breakage ...
6 years, 6 months ago (2014-06-12 07:25:16 UTC) #5
arv (Not doing code reviews)
On 2014/06/12 at 07:25:16, marja wrote: > Code LGTM. Looks like a reasonable thing to ...
6 years, 6 months ago (2014-06-12 17:40:04 UTC) #6
marja
On 2014/06/12 17:40:04, arv wrote: > On 2014/06/12 at 07:25:16, marja wrote: > > Code ...
6 years, 6 months ago (2014-06-13 14:05:51 UTC) #7
arv (Not doing code reviews)
On 2014/06/13 at 14:05:51, marja wrote: > On 2014/06/12 17:40:04, arv wrote: > > On ...
6 years, 6 months ago (2014-06-13 14:24:24 UTC) #8
marja
Oh and I'll land this CL next week, since it's Friday after-work-a-clock here.
6 years, 6 months ago (2014-06-13 14:55:11 UTC) #9
marja
Hmm, I ran make quickcheck for this CL, but it fails... The failing test is ...
6 years, 6 months ago (2014-06-16 07:37:57 UTC) #10
arv (Not doing code reviews)
On 2014/06/16 at 07:37:57, marja wrote: > Hmm, I ran make quickcheck for this CL, ...
6 years, 6 months ago (2014-06-16 13:55:09 UTC) #11
marja
I discussed with rossberg@ and he says that disabling the test on the V8 side ...
6 years, 6 months ago (2014-06-16 14:43:15 UTC) #12
arv (Not doing code reviews)
On 2014/06/16 at 14:43:15, marja wrote: > I discussed with rossberg@ and he says that ...
6 years, 6 months ago (2014-06-16 14:58:00 UTC) #13
rossberg
On 2014/06/16 14:58:00, arv wrote: > On 2014/06/16 at 14:43:15, marja wrote: > > I ...
6 years, 6 months ago (2014-06-16 15:03:27 UTC) #14
arv (Not doing code reviews)
Add test exception
6 years, 6 months ago (2014-06-16 15:35:11 UTC) #15
arv (Not doing code reviews)
On 2014/06/16 at 15:03:27, rossberg wrote: > On 2014/06/16 14:58:00, arv wrote: > > On ...
6 years, 6 months ago (2014-06-16 15:35:50 UTC) #16
marja
still lgtm; will land this now
6 years, 6 months ago (2014-06-16 16:00:01 UTC) #17
marja
On 2014/06/16 16:00:01, marja wrote: > still lgtm; will land this now Argh, oh wait, ...
6 years, 6 months ago (2014-06-16 16:00:26 UTC) #18
marja
Committed patchset #4 manually as r21868 (tree was closed).
6 years, 6 months ago (2014-06-17 07:23:41 UTC) #19
ulan
On 2014/06/17 07:23:41, marja wrote: > Committed patchset #4 manually as r21868 (tree was closed). ...
6 years, 6 months ago (2014-06-17 16:10:37 UTC) #20
arv (Not doing code reviews)
On 2014/06/17 16:10:37, ulan wrote: > On 2014/06/17 07:23:41, marja wrote: > > Committed patchset ...
6 years, 6 months ago (2014-06-17 16:20:01 UTC) #21
arv (Not doing code reviews)
On 2014/06/17 16:20:01, arv wrote: > I'm confused why they are showing up. Some of ...
6 years, 6 months ago (2014-06-17 16:26:33 UTC) #22
arv (Not doing code reviews)
6 years, 6 months ago (2014-06-17 16:32:07 UTC) #23
Message was sent while issue was closed.
On 2014/06/17 16:26:33, arv wrote:
> On 2014/06/17 16:20:01, arv wrote:
> 
> > I'm confused why they are showing up.
> 
> Some of the tests timeout, not fail.
> 
> https://codereview.chromium.org/334393005/

Landed test expectation change. Sorry for the interuptions.

Powered by Google App Engine
This is Rietveld 408576698