| Index: Source/bindings/tests/results/V8TestEventTarget.h
|
| diff --git a/Source/bindings/tests/results/V8TestEventTarget.h b/Source/bindings/tests/results/V8TestEventTarget.h
|
| index 9930259e82a4419f58038394b96eb034baa55ae3..89d509149e355711ea38aecb316af90e9ea8c97d 100644
|
| --- a/Source/bindings/tests/results/V8TestEventTarget.h
|
| +++ b/Source/bindings/tests/results/V8TestEventTarget.h
|
| @@ -21,11 +21,11 @@
|
| #ifndef V8TestEventTarget_h
|
| #define V8TestEventTarget_h
|
|
|
| -#include <v8.h>
|
| -#include "TestEventTarget.h"
|
| +#include "bindings/bindings/tests/idls/TestEventTarget.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(TestEventTarget* impl, v8::Handle<v8::Object>
|
| {
|
| 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 == V8TestEventTarget::info.derefObjectFunction);
|
| + }
|
| return V8TestEventTarget::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
|
|