Index: Source/bindings/tests/results/V8TestInterface.h |
diff --git a/Source/bindings/tests/results/V8TestInterface.h b/Source/bindings/tests/results/V8TestInterface.h |
index 317b003e1d64394c41141138343d4afb70ab1c6a..f436ee77c6e0fe3a59f14724a0245c24e96531ec 100644 |
--- a/Source/bindings/tests/results/V8TestInterface.h |
+++ b/Source/bindings/tests/results/V8TestInterface.h |
@@ -66,6 +66,12 @@ 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); |
+ // Might be a XXXConstructor::info instead of an XXX::info. These will both have |
+ // the same object de-ref functions, though, so use that as the basis of the check. |
+ RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestInterface::info.derefObjectFunction); |
+ } |
return V8TestInterface::createWrapper(impl, creationContext, isolate); |
} |