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

Issue 1936433002: Use [[DefineOwnProperty]] when converting IDL array values (Closed)

Created:
4 years, 7 months ago by Jens Widell
Modified:
4 years, 7 months ago
Reviewers:
haraken, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use [[DefineOwnProperty]] when converting IDL array values This means using v8::Object::CreateDataProperty() rather than Set(), and is in line with how the conversion is defined in WebIDL. The incorrect use of Set() is observable by scripts that define setters on Array.prototype for the properties "0", "1", "2" and so on. Also apply the same fix to conversion of Vector<std::pair<>> into object. BUG=607483 Committed: https://crrev.com/650cd4ace843e976e28fa87fa40bd9c017d39f63 Cr-Commit-Position: refs/heads/master@{#390610}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/js/webidl-sequence-conversion.html View 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ToV8.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Jens Widell
PTAL This CL independently fixes the TC in bug 607483.
4 years, 7 months ago (2016-04-29 08:12:06 UTC) #2
haraken
LGTM
4 years, 7 months ago (2016-04-29 08:46:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936433002/1
4 years, 7 months ago (2016-04-29 08:53:00 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-04-29 10:08:37 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/650cd4ace843e976e28fa87fa40bd9c017d39f63 Cr-Commit-Position: refs/heads/master@{#390610}
4 years, 7 months ago (2016-04-30 17:24:50 UTC) #7
Yuki
4 years, 7 months ago (2016-05-09 05:52:23 UTC) #9
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698