Index: third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
index fc4c3d704e2a23e9027e44b6a8533769cdc6d468..4b5677e5a7ac3b72eee59d603bec14324257b2b7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
@@ -86,7 +86,7 @@ void V8Document::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& inf |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Document", info.Holder(), info.GetIsolate()); |
document->open(enteredDOMWindow(info.GetIsolate())->document(), exceptionState); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) |
return; |
v8SetReturnValue(info, info.Holder()); |