Index: Source/bindings/tests/results/V8TestNamedConstructor.h |
diff --git a/Source/bindings/tests/results/V8TestNamedConstructor.h b/Source/bindings/tests/results/V8TestNamedConstructor.h |
index b8592abbc588b168840e0efb2fef8d139b14914f..29581ed7f479825ee18bc49b4de6069a41b0530e 100644 |
--- a/Source/bindings/tests/results/V8TestNamedConstructor.h |
+++ b/Source/bindings/tests/results/V8TestNamedConstructor.h |
@@ -69,6 +69,12 @@ inline v8::Handle<v8::Object> wrap(TestNamedConstructor* impl, v8::Handle<v8::Ob |
{ |
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 == V8TestNamedConstructor::info.derefObjectFunction); |
+ } |
return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate); |
} |