| Index: Source/bindings/tests/results/V8TestInterface.h
|
| diff --git a/Source/bindings/tests/results/V8TestInterface.h b/Source/bindings/tests/results/V8TestInterface.h
|
| index 17c7ddc1a9f1fe66d153eaadd3e3ceebadcd349a..17c199ee7686b82367bffa5c6a0fe391b389bfab 100644
|
| --- a/Source/bindings/tests/results/V8TestInterface.h
|
| +++ b/Source/bindings/tests/results/V8TestInterface.h
|
| @@ -22,11 +22,11 @@
|
| #define V8TestInterface_h
|
|
|
| #if ENABLE(Condition1) || ENABLE(Condition2)
|
| -#include <v8.h>
|
| -#include "TestInterface.h"
|
| +#include "bindings/bindings/tests/idls/TestInterface.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>
|
|
|
| @@ -66,6 +66,12 @@ inline v8::Handle<v8::Object> wrap(TestInterface* 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 == V8TestInterface::info.derefObjectFunction);
|
| + }
|
| return V8TestInterface::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|