| Index: Source/bindings/tests/results/V8TestObj.h
|
| diff --git a/Source/bindings/tests/results/V8TestObj.h b/Source/bindings/tests/results/V8TestObj.h
|
| index 689a4b2f293e48389c362dbb3216a98629e1b098..b3c1ba98c0ff3b5f83e7f785b87dee3429213750 100644
|
| --- a/Source/bindings/tests/results/V8TestObj.h
|
| +++ b/Source/bindings/tests/results/V8TestObj.h
|
| @@ -68,6 +68,12 @@ 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);
|
| + // 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 == V8TestObj::info.derefObjectFunction);
|
| + }
|
| return V8TestObj::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|