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

Issue 313033002: Rethrow exception when swallowing it is not intended. (Closed)

Created:
6 years, 6 months ago by yhirano
Modified:
6 years, 6 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Rethrow exception when swallowing it is not intended. We're trying to make v8::TryCatch nestable. In preparation for that, this CL adds ReThrow for nested trycatches. BUG=362388 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176411

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 11

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -22 lines) Patch
M LayoutTests/fast/dom/TreeWalker/acceptNode-filter-expected.txt View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8BindingMacros.h View 1 2 3 1 chunk +15 lines, -17 lines 0 comments Download
M Source/bindings/v8/V8NodeFilterCondition.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
yhirano
6 years, 6 months ago (2014-06-13 11:05:29 UTC) #1
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (left): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#oldcode92 Source/bindings/v8/V8NodeFilterCondition.cpp:92: exceptionState.rethrowV8Exception(exceptionCatcher.Exception()); In core/dom/{NodeIterator,TreeWalker}.cpp, the passed in ExceptionState object's hadException() ...
6 years, 6 months ago (2014-06-13 11:22:06 UTC) #2
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (left): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#oldcode92 Source/bindings/v8/V8NodeFilterCondition.cpp:92: exceptionState.rethrowV8Exception(exceptionCatcher.Exception()); On 2014/06/13 11:22:06, Jens Lindström wrote: > In ...
6 years, 6 months ago (2014-06-13 11:46:06 UTC) #3
yhirano
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (left): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#oldcode92 Source/bindings/v8/V8NodeFilterCondition.cpp:92: exceptionState.rethrowV8Exception(exceptionCatcher.Exception()); On 2014/06/13 11:22:06, Jens Lindström wrote: > In ...
6 years, 6 months ago (2014-06-16 11:30:10 UTC) #4
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (left): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#oldcode92 Source/bindings/v8/V8NodeFilterCondition.cpp:92: exceptionState.rethrowV8Exception(exceptionCatcher.Exception()); On 2014/06/16 11:30:10, yhirano wrote: > On 2014/06/13 ...
6 years, 6 months ago (2014-06-16 11:56:39 UTC) #5
yhirano
https://codereview.chromium.org/313033002/diff/40001/Source/bindings/v8/V8BindingMacros.h File Source/bindings/v8/V8BindingMacros.h (right): https://codereview.chromium.org/313033002/diff/40001/Source/bindings/v8/V8BindingMacros.h#newcode76 Source/bindings/v8/V8BindingMacros.h:76: exceptionState.rethrowV8Exception(block.Exception()); \ On 2014/06/16 11:56:39, Jens Lindström wrote: > ...
6 years, 6 months ago (2014-06-17 11:10:03 UTC) #6
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); Is the re-throwing here (despite also returning ...
6 years, 6 months ago (2014-06-17 13:46:11 UTC) #7
yhirano
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/17 13:46:10, Jens Lindström wrote: > ...
6 years, 6 months ago (2014-06-17 13:53:13 UTC) #8
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/17 13:53:13, yhirano wrote: > On ...
6 years, 6 months ago (2014-06-17 14:07:20 UTC) #9
yhirano
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/17 14:07:20, Jens Lindström wrote: > ...
6 years, 6 months ago (2014-06-18 07:17:52 UTC) #10
Jens Widell
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/18 07:17:52, yhirano wrote: > On ...
6 years, 6 months ago (2014-06-18 07:26:06 UTC) #11
yhirano
https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/18 07:26:06, Jens Lindström wrote: > ...
6 years, 6 months ago (2014-06-18 07:31:36 UTC) #12
Jens Widell
LGTM (non-owner) haraken? https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp File Source/bindings/v8/V8NodeFilterCondition.cpp (right): https://codereview.chromium.org/313033002/diff/20001/Source/bindings/v8/V8NodeFilterCondition.cpp#newcode72 Source/bindings/v8/V8NodeFilterCondition.cpp:72: V8RethrowTryCatchScope rethrow(exceptionCatcher); On 2014/06/18 07:31:36, yhirano ...
6 years, 6 months ago (2014-06-18 07:36:30 UTC) #13
haraken
LGTM. jl@: Your review is very helpful :)
6 years, 6 months ago (2014-06-18 09:42:53 UTC) #14
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 6 months ago (2014-06-18 10:01:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/313033002/120001
6 years, 6 months ago (2014-06-18 10:01:42 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 12:23:49 UTC) #17
Message was sent while issue was closed.
Change committed as 176411

Powered by Google App Engine
This is Rietveld 408576698