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 045d989e224efe1c97fc3050ec66871e7141eed1..ecced3564337367995ba11b40d2c8716785333d7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
@@ -87,7 +87,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()); |