| Index: third_party/WebKit/Source/bindings/core/v8/ScriptState.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
|
| index e3fe7dd6c92dd53637bc90e03154af77eda81e08..4d8d0febb920191cc1012eb5301d35a3031deded 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
|
| @@ -155,6 +155,9 @@
|
| }
|
| void detachGlobalObject();
|
| void clearContext() { return m_context.clear(); }
|
| +#if DCHECK_IS_ON()
|
| + bool isGlobalObjectDetached() const { return m_globalObjectDetached; }
|
| +#endif
|
|
|
| V8PerContextData* perContextData() const { return m_perContextData.get(); }
|
| void disposePerContextData();
|
| @@ -180,6 +183,10 @@
|
| // disposePerContextData() once you no longer need V8PerContextData.
|
| // Otherwise, the v8::Context will leak.
|
| std::unique_ptr<V8PerContextData> m_perContextData;
|
| +
|
| +#if DCHECK_IS_ON()
|
| + bool m_globalObjectDetached = false;
|
| +#endif
|
| };
|
|
|
| // ScriptStateProtectingContext keeps the context associated with the
|
|
|