| 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 b8286a4ac59874167358ebe561864df354227465..0e24d7c9a1ffbeca84ecf52c68123090782867ca 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));
|
|
|