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