| Index: Source/bindings/tests/results/V8TestObj.h
|
| diff --git a/Source/bindings/tests/results/V8TestObj.h b/Source/bindings/tests/results/V8TestObj.h
|
| index 843d760be4bedd59c1f5447aef2393726ab49e92..9c22e5ce0252afb0d9256f99c6b3b6eca135037e 100644
|
| --- a/Source/bindings/tests/results/V8TestObj.h
|
| +++ b/Source/bindings/tests/results/V8TestObj.h
|
| @@ -21,11 +21,11 @@
|
| #ifndef V8TestObj_h
|
| #define V8TestObj_h
|
|
|
| -#include <v8.h>
|
| -#include "TestObj.h"
|
| +#include "bindings/bindings/tests/idls/TestObj.h"
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/V8DOMWrapper.h"
|
| #include "bindings/v8/WrapperTypeInfo.h"
|
| +#include <v8.h>
|
| #include <wtf/HashMap.h>
|
| #include <wtf/text/StringHash.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);
|
| }
|
|
|
|
|