| Index: Source/bindings/core/v8/ScriptState.h
|
| diff --git a/Source/bindings/core/v8/ScriptState.h b/Source/bindings/core/v8/ScriptState.h
|
| index bfcbdf126ba44a91878e607aeca8a4ed5a1d04fa..38cfe99d1cbfb6f395ef499f8cbf7a0abfff17f2 100644
|
| --- a/Source/bindings/core/v8/ScriptState.h
|
| +++ b/Source/bindings/core/v8/ScriptState.h
|
| @@ -74,7 +74,7 @@ public:
|
|
|
| // This can return an empty handle if the v8::Context is gone.
|
| v8::Handle<v8::Context> context() const { return m_context.newLocal(m_isolate); }
|
| - bool contextIsValid() const { return m_context.isEmpty() || m_globalObjectDetached; }
|
| + bool contextIsValid() const { return !m_context.isEmpty() && !m_globalObjectDetached; }
|
| void detachGlobalObject();
|
| void clearContext() { return m_context.clear(); }
|
|
|
|
|