| Index: Source/bindings/tests/results/V8TestException.h
|
| diff --git a/Source/bindings/tests/results/V8TestException.h b/Source/bindings/tests/results/V8TestException.h
|
| index 1e6cdc5a888e576683d6132a6ada9cbdb1f7ec5f..44b8b0a1a596b9aa1e90296174ab7a8755a40ff2 100644
|
| --- a/Source/bindings/tests/results/V8TestException.h
|
| +++ b/Source/bindings/tests/results/V8TestException.h
|
| @@ -62,6 +62,12 @@ inline v8::Handle<v8::Object> wrap(TestException* impl, v8::Handle<v8::Object> c
|
| {
|
| 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 == V8TestException::info.derefObjectFunction);
|
| + }
|
| return V8TestException::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|