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

Issue 2331223004: [api] Throw in defineProperty() when necessary. (Closed)

Created:
4 years, 3 months ago by Franzi
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[api] Throw in defineProperty() when necessary. According to http://heycam.github.io/webidl/#defineownproperty, we must throw when the object has a setter callback and we call defineProperty with a non data descriptor. BUG=chromium:645542

Patch Set 1 #

Patch Set 2 : Fix tests that called defineProperty with setter installed. #

Patch Set 3 : Fix bytecode tests. #

Patch Set 4 : Fix formatting. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -48 lines) Patch
M src/messages.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +9 lines, -0 lines 2 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 4 chunks +4 lines, -4 lines 2 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api-interceptors.cc View 1 2 3 13 chunks +79 lines, -43 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Franzi
Hi, Here's a fix for a Chromium issue related to defineProperty(). Can you please have ...
4 years, 3 months ago (2016-09-13 17:43:19 UTC) #6
adamk
This seems reasonable enough, but from my reading of the attached bug and some experiments ...
4 years, 3 months ago (2016-09-13 19:22:02 UTC) #7
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2331223004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/2331223004/diff/60001/src/objects.cc#newcode1688 src/objects.cc:1688: // Throw if setter callback is defined and define ...
4 years, 3 months ago (2016-09-14 08:43:01 UTC) #8
Franzi
Thinking about this some more, this change will break the Node.js interactive shell (REPL) every ...
4 years, 3 months ago (2016-09-14 16:19:51 UTC) #9
adamk
I like the idea of pushing back on the spec here, and is a good ...
4 years, 3 months ago (2016-09-15 00:18:47 UTC) #10
adamk
4 years, 3 months ago (2016-09-15 00:19:10 UTC) #11
On 2016/09/15 00:18:47, adamk wrote:
> I like the idea of pushing back on the spec here, and is a good contact for
> that.

That was supposed to read "...and bzbarsky is a good contact for that".

Powered by Google App Engine
This is Rietveld 408576698