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

Issue 6451003: Correct propagation of exceptions from setters. (Closed)

Created:
9 years, 10 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Correct propagation of exceptions from setters. BUG=v8:1105 TEST=test/mjsunit/regress/regress-1105.js Committed: http://code.google.com/p/v8/source/detail?r=6680

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M src/runtime.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-1105.js View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
9 years, 10 months ago (2011-02-08 13:28:17 UTC) #1
antonm
LGTM http://codereview.chromium.org/6451003/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/6451003/diff/1/src/runtime.cc#newcode1093 src/runtime.cc:1093: if (result.is_null()) return Failure::Exception(); I know we do ...
9 years, 10 months ago (2011-02-08 13:33:01 UTC) #2
Lasse Reichstein
9 years, 10 months ago (2011-02-08 13:38:56 UTC) #3
http://codereview.chromium.org/6451003/diff/1/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/6451003/diff/1/src/runtime.cc#newcode1093
src/runtime.cc:1093: if (result.is_null()) return Failure::Exception();
And yet, if we had done it here, we would have caught this much faster.
I'll add them.

http://codereview.chromium.org/6451003/diff/1/test/mjsunit/regress/regress-11...
File test/mjsunit/regress/regress-1105.js (right):

http://codereview.chromium.org/6451003/diff/1/test/mjsunit/regress/regress-11...
test/mjsunit/regress/regress-1105.js:31:
this.eval('__defineSetter__("x",function(){throw 42;});')
Ah, that works too.
This was a blind copy of the original example, using eval instead of load.
Thanks.

Powered by Google App Engine
This is Rietveld 408576698