Index: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
index 81bc0b8438cf548b54be93acf59dd97091a54bec..8305a122a34c42443f240b6acc0a270e2b5cc0b9 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h |
@@ -115,6 +115,7 @@ public: |
// is different from the context that we are about to enter. |
if (contextForWrapper == m_context) |
return; |
+ RELEASE_ASSERT(creationContext->CreationContext()->Global() == m_context->Global()); |
if (withSecurityCheck) { |
securityCheck(isolate, contextForWrapper); |
} else { |