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