Index: Source/bindings/tests/results/V8TestEventTarget.h |
diff --git a/Source/bindings/tests/results/V8TestEventTarget.h b/Source/bindings/tests/results/V8TestEventTarget.h |
index 87556247700b0f6cdb29c38a0def8d625028e1d8..ee4b681f7a4641ec922d6c7fa6da5e17a9757075 100644 |
--- a/Source/bindings/tests/results/V8TestEventTarget.h |
+++ b/Source/bindings/tests/results/V8TestEventTarget.h |
@@ -66,6 +66,11 @@ inline v8::Handle<v8::Object> wrap(TestEventTarget* impl, v8::Handle<v8::Object> |
{ |
ASSERT(impl); |
ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); |
+ if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) { |
+ const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObject(impl); |
+ if (actualInfo != &V8TestEventTarget::info) |
+ CRASH(); |
+ } |
return V8TestEventTarget::createWrapper(impl, creationContext, isolate); |
} |