| Index: Source/bindings/tests/results/V8TestEventConstructor.h
|
| diff --git a/Source/bindings/tests/results/V8TestEventConstructor.h b/Source/bindings/tests/results/V8TestEventConstructor.h
|
| index 2d7195365f2c045cb59c2d378fdde48f317698ee..fa1ce520d88c20d571b56d2047e70cc696b78217 100644
|
| --- a/Source/bindings/tests/results/V8TestEventConstructor.h
|
| +++ b/Source/bindings/tests/results/V8TestEventConstructor.h
|
| @@ -64,6 +64,12 @@ inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob
|
| {
|
| 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 == V8TestEventConstructor::info.derefObjectFunction);
|
| + }
|
| return V8TestEventConstructor::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|