| Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| index 02eaf3a096263ceef6c7bcd0af01a7f9e57ac647..00558812de31ef5da45d8b177a33940a45701da5 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
|
| @@ -102,7 +102,7 @@
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| - if (getExecutionContext()->isContextDestroyed())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolved = value;
|
| resolveOrReject(Resolved);
|
| @@ -116,7 +116,7 @@
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| - if (getExecutionContext()->isContextDestroyed())
|
| + if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_rejected = value;
|
| resolveOrReject(Rejected);
|
|
|