| Index: Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h
|
| diff --git a/Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h b/Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h
|
| index 5986d19bb967186ad8b6dfbb04b66d5bebb3c887..12117a85eddc8c8b0cb4462c923ebcce186e39fd 100644
|
| --- a/Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h
|
| +++ b/Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h
|
| @@ -22,11 +22,11 @@
|
| #define V8TestSerializedScriptValueInterface_h
|
|
|
| #if ENABLE(Condition1) || ENABLE(Condition2)
|
| -#include <v8.h>
|
| -#include "TestSerializedScriptValueInterface.h"
|
| +#include "bindings/bindings/tests/idls/TestSerializedScriptValueInterface.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>
|
|
|
| @@ -63,6 +63,12 @@ inline v8::Handle<v8::Object> wrap(TestSerializedScriptValueInterface* impl, v8:
|
| {
|
| 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 == V8TestSerializedScriptValueInterface::info.derefObjectFunction);
|
| + }
|
| return V8TestSerializedScriptValueInterface::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|