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

Issue 2397603003: [runtime] Let native setters have a return value. (Closed)

Created:
4 years, 2 months ago by neis
Modified:
4 years, 1 month ago
Reviewers:
Toon Verwaest, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] Let native setters have a return value. Native setters (see AccessorInfo in accessors.h) didn't have the ability to return a result value. As a consequence of this, for instance, Reflect.set on the length property of arrays had the wrong behavior: var y = []; Object.defineProperty(y, 0, {value: 42, configurable: false}) Reflect.set(y, 'length', 0) The Reflect.set call used to return true. Now it returns false as required by the spec. BUG=v8:5401 Committed: https://crrev.com/f33a4078e8cce1da190eb425e28fe89eee8a4370 Cr-Commit-Position: refs/heads/master@{#40579}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Rename and enforce Boolean result. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix bad merge. #

Patch Set 6 : Update test expectation. #

Patch Set 7 : Ouch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -57 lines) Patch
M src/accessors.h View 1 2 3 2 chunks +15 lines, -6 lines 0 comments Download
M src/accessors.cc View 1 2 3 4 5 6 10 chunks +28 lines, -26 lines 0 comments Download
M src/api-arguments.h View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 2 3 3 chunks +24 lines, -17 lines 0 comments Download
M test/cctest/heap/test-alloc.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M test/mjsunit/es6/reflect.js View 1 2 chunks +16 lines, -0 lines 0 comments Download
M test/mjsunit/modules-namespace1.js View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (32 generated)
neis
ptal
4 years, 2 months ago (2016-10-05 12:12:25 UTC) #5
neis
On 2016/10/05 12:12:25, neis wrote: > ptal ping
4 years, 2 months ago (2016-10-11 09:12:59 UTC) #6
adamk
Per spec this is right, but I'd prefer verwaest to review the code.
4 years, 2 months ago (2016-10-11 15:56:03 UTC) #7
Toon Verwaest
lgtm. Can we clean up these function types though; now it looks a bit odd?
4 years, 2 months ago (2016-10-12 10:26:46 UTC) #8
neis
Please take another look. I changed the result type from Value to Boolean, defining a ...
4 years, 1 month ago (2016-10-24 11:54:07 UTC) #17
Toon Verwaest
lgtm
4 years, 1 month ago (2016-10-26 08:05:06 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2397603003/160001
4 years, 1 month ago (2016-10-26 08:35:51 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 1 month ago (2016-10-26 08:59:33 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:13:22 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f33a4078e8cce1da190eb425e28fe89eee8a4370
Cr-Commit-Position: refs/heads/master@{#40579}

Powered by Google App Engine
This is Rietveld 408576698