Index: Source/bindings/v8/V8NodeFilterCondition.cpp |
diff --git a/Source/bindings/v8/V8NodeFilterCondition.cpp b/Source/bindings/v8/V8NodeFilterCondition.cpp |
index d8007c764733a6297614106a007f7e750e415a8b..5f9350096548a811ee4eabf30870c661940cf9dd 100644 |
--- a/Source/bindings/v8/V8NodeFilterCondition.cpp |
+++ b/Source/bindings/v8/V8NodeFilterCondition.cpp |
@@ -69,6 +69,7 @@ short V8NodeFilterCondition::acceptNode(Node* node, ExceptionState& exceptionSta |
return NodeFilter::FILTER_ACCEPT; |
v8::TryCatch exceptionCatcher; |
+ V8RethrowTryCatchScope rethrow(exceptionCatcher); |
Jens Widell
2014/06/17 13:46:10
Is the re-throwing here (despite also returning th
yhirano
2014/06/17 13:53:13
I need ReThrow at L80.
The current code doesn't ca
Jens Widell
2014/06/17 14:07:20
Oh, I had missed that the function returned at L80
yhirano
2014/06/18 07:17:52
OK, I changed L79 at PS6. It changes error message
Jens Widell
2014/06/18 07:26:06
The new error message (looking at the *-expected.t
yhirano
2014/06/18 07:31:36
Its not needed and I removed it at PS6.
Jens Widell
2014/06/18 07:36:30
Cool! :-)
|
v8::Handle<v8::Function> callback; |
if (filter->IsFunction()) |
@@ -89,7 +90,6 @@ short V8NodeFilterCondition::acceptNode(Node* node, ExceptionState& exceptionSta |
v8::Handle<v8::Value> result = ScriptController::callFunction(m_scriptState->executionContext(), callback, context, 1, info.get(), isolate); |
if (exceptionCatcher.HasCaught()) { |
- exceptionState.rethrowV8Exception(exceptionCatcher.Exception()); |
Jens Widell
2014/06/13 11:22:06
In core/dom/{NodeIterator,TreeWalker}.cpp, the pas
Jens Widell
2014/06/13 11:46:06
See this TC: http://software.hixie.ch/utilities/js
yhirano
2014/06/16 11:30:10
Thanks, done.
Jens Widell
2014/06/16 11:56:39
I haven't tested, but I'd guess the callers work a
|
return NodeFilter::FILTER_REJECT; |
} |