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