Index: Source/bindings/tests/results/V8TestEventTarget.h |
diff --git a/Source/bindings/tests/results/V8TestEventTarget.h b/Source/bindings/tests/results/V8TestEventTarget.h |
index e261da2b7800f22164771fc8c19a41990bceb0be..e72c9f8ab51d5a01d6e1c36df0bf75aa96781cd0 100644 |
--- a/Source/bindings/tests/results/V8TestEventTarget.h |
+++ b/Source/bindings/tests/results/V8TestEventTarget.h |
@@ -66,6 +66,12 @@ inline v8::Handle<v8::Object> wrap(TestEventTarget* impl, v8::Handle<v8::Object> |
{ |
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 == V8TestEventTarget::info.derefObjectFunction); |
+ } |
return V8TestEventTarget::createWrapper(impl, creationContext, isolate); |
} |