Index: Source/bindings/tests/results/V8TestEventConstructor.h |
diff --git a/Source/bindings/tests/results/V8TestEventConstructor.h b/Source/bindings/tests/results/V8TestEventConstructor.h |
index 50b253d4acfaf695a0a3f684d44f343a1e56b753..5c7e6aedc3d8d0f51ea7ff3296640b63ebebd5c3 100644 |
--- a/Source/bindings/tests/results/V8TestEventConstructor.h |
+++ b/Source/bindings/tests/results/V8TestEventConstructor.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestEventConstructor_h |
#define V8TestEventConstructor_h |
-#include <v8.h> |
-#include "TestEventConstructor.h" |
+#include "bindings/bindings/tests/idls/TestEventConstructor.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> |
@@ -64,6 +64,12 @@ inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob |
{ |
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 == V8TestEventConstructor::info.derefObjectFunction); |
+ } |
return V8TestEventConstructor::createWrapper(impl, creationContext, isolate); |
} |