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