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