| Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
|
| index 079fd6ddd1fb936cc823f6b1e5540b9b0d36af2c..0df407c988b5026f116bb084cd3a15b5b274aba4 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
|
| @@ -54,7 +54,7 @@ class CORE_EXPORT ScriptPromiseResolver
|
| // ExecutionContext is stopped.
|
| ASSERT(m_state == Detached || !m_isPromiseCalled ||
|
| !getScriptState()->contextIsValid() || !getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped());
|
| + getExecutionContext()->isContextDestroyed());
|
| }
|
| #endif
|
|
|
| @@ -120,8 +120,7 @@ class CORE_EXPORT ScriptPromiseResolver
|
| template <typename T>
|
| void resolveOrReject(T value, ResolutionState newState) {
|
| if (m_state != Pending || !getScriptState()->contextIsValid() ||
|
| - !getExecutionContext() ||
|
| - getExecutionContext()->activeDOMObjectsAreStopped())
|
| + !getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
| ASSERT(newState == Resolving || newState == Rejecting);
|
| m_state = newState;
|
|
|