| Index: Source/bindings/v8/custom/V8DocumentCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8DocumentCustom.cpp b/Source/bindings/v8/custom/V8DocumentCustom.cpp
|
| index 6919bf145d23ef8822a42a00116d20cb46402bae..53708a14635558296b49b8360aeebd5fca080460 100644
|
| --- a/Source/bindings/v8/custom/V8DocumentCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8DocumentCustom.cpp
|
| @@ -60,7 +60,7 @@ namespace WebCore {
|
| void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| RefPtr<Document> document = V8Document::toNative(info.Holder());
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, expression, info[0]);
|
| RefPtr<Node> contextNode;
|
| if (V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())))
|
| @@ -77,8 +77,8 @@ void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
| if (V8XPathResult::hasInstance(info[4], info.GetIsolate(), worldType(info.GetIsolate())))
|
| inResult = V8XPathResult::toNative(v8::Handle<v8::Object>::Cast(info[4]));
|
|
|
| - V8TRYCATCH_VOID(RefPtr<XPathResult>, result, DocumentXPathEvaluator::evaluate(document.get(), expression, contextNode.get(), resolver.get(), type, inResult.get(), es));
|
| - if (es.throwIfNeeded())
|
| + V8TRYCATCH_VOID(RefPtr<XPathResult>, result, DocumentXPathEvaluator::evaluate(document.get(), expression, contextNode.get(), resolver.get(), type, inResult.get(), exceptionState));
|
| + if (exceptionState.throwIfNeeded())
|
| return;
|
|
|
| v8SetReturnValueFast(info, result.release(), document.get());
|
|
|