Index: third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp |
index 3cfc2a678ced74a287df5990b9eeceddaf3b762f..f5164a95a1cb8b8a9bc6c14b879d15db926d41cf 100644 |
--- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp |
@@ -35,12 +35,12 @@ void V8IDBObserver::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& |
IDBObserverInit idbObserverInit; |
ExceptionState exceptionState(ExceptionState::ConstructionContext, "IDBObserver", info.Holder(), info.GetIsolate()); |
V8IDBObserverInit::toImpl(info.GetIsolate(), info[1], idbObserverInit, exceptionState); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) |
return; |
IDBObserverCallback* callback = new V8IDBObserverCallback(v8::Local<v8::Function>::Cast(info[0]), wrapper, ScriptState::current(info.GetIsolate())); |
IDBObserver* observer = IDBObserver::create(*callback, idbObserverInit); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) |
return; |
DCHECK(observer); |
v8SetReturnValue(info, V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), observer, &wrapperTypeInfo, wrapper)); |