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