| Index: Source/bindings/tests/results/V8TestException.h
|
| diff --git a/Source/bindings/tests/results/V8TestException.h b/Source/bindings/tests/results/V8TestException.h
|
| index 072abcf2e2671dec42fa23de00aeab2c953a6188..272ecd30fc51d0e2c10e99799c90d59a4820ddae 100644
|
| --- a/Source/bindings/tests/results/V8TestException.h
|
| +++ b/Source/bindings/tests/results/V8TestException.h
|
| @@ -62,6 +62,11 @@ 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);
|
| + if (actualInfo != &V8TestException::info)
|
| + CRASH();
|
| + }
|
| return V8TestException::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|