Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: Source/bindings/core/v8/ScriptState.h

Issue 823263002: ScriptState used by EventListener::handleEvent() is wrong (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/ScriptState.h
diff --git a/Source/bindings/core/v8/ScriptState.h b/Source/bindings/core/v8/ScriptState.h
index a569d3414f89f10f7ade0cc14bc9cd4e2216c3b1..a49a14f49de904c3a6750b73b173515211309451 100644
--- a/Source/bindings/core/v8/ScriptState.h
+++ b/Source/bindings/core/v8/ScriptState.h
@@ -32,7 +32,7 @@ public:
: m_handleScope(scriptState->isolate())
, m_context(scriptState->context())
{
- ASSERT(!m_context.IsEmpty());
+ ASSERT(scriptState->contextIsValid());
m_context->Enter();
}

Powered by Google App Engine
This is Rietveld 408576698