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

Issue 1809233002: Throw exceptions from CreateDataProperty when should_throw (Closed)

Created:
4 years, 9 months ago by Dan Ehrenberg
Modified:
4 years, 9 months ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Throw exceptions from CreateDataProperty when should_throw Previously, when a property was non-configurable or the object was non-extensible, CreateDataProperty might just return false rather than throwing, even if should_throw was on. This patch fixes that issue. Tested by running the patch at https://codereview.chromium.org/1814933002 on top of this code and observing the tests to see an exception thrown. R=adamk BUG=chromium:595319 LOG=Y Committed: https://crrev.com/67bee8149a6d3d02f1e349919cbe86d87b452128 Cr-Commit-Position: refs/heads/master@{#34875}

Patch Set 1 #

Total comments: 2

Patch Set 2 : brackets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -8 lines) Patch
M src/objects.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809233002/1
4 years, 9 months ago (2016-03-17 21:14:48 UTC) #2
Dan Ehrenberg
4 years, 9 months ago (2016-03-17 21:14:49 UTC) #3
adamk
lgtm % nit https://codereview.chromium.org/1809233002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1809233002/diff/1/src/objects.cc#newcode6738 src/objects.cc:6738: if (!JSObject::IsExtensible(Handle<JSObject>::cast(it->GetReceiver()))) Nit: please add braces ...
4 years, 9 months ago (2016-03-17 21:22:06 UTC) #4
Dan Ehrenberg
https://codereview.chromium.org/1809233002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1809233002/diff/1/src/objects.cc#newcode6738 src/objects.cc:6738: if (!JSObject::IsExtensible(Handle<JSObject>::cast(it->GetReceiver()))) On 2016/03/17 at 21:22:06, adamk wrote: > ...
4 years, 9 months ago (2016-03-17 21:25:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809233002/20001
4 years, 9 months ago (2016-03-17 21:25:38 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-17 21:51:13 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 21:52:42 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/67bee8149a6d3d02f1e349919cbe86d87b452128
Cr-Commit-Position: refs/heads/master@{#34875}

Powered by Google App Engine
This is Rietveld 408576698