Index: Source/bindings/tests/results/V8TestNode.h |
diff --git a/Source/bindings/tests/results/V8TestNode.h b/Source/bindings/tests/results/V8TestNode.h |
index d59933d2925085ec9e2e7c2abee795fd6329af5c..6605c6c9fde2e372437d7850ae62fba5eed06773 100644 |
--- a/Source/bindings/tests/results/V8TestNode.h |
+++ b/Source/bindings/tests/results/V8TestNode.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestNode_h |
#define V8TestNode_h |
-#include <v8.h> |
-#include "TestNode.h" |
+#include "bindings/bindings/tests/idls/TestNode.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(TestNode* impl, v8::Handle<v8::Object> creati |
{ |
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 == V8TestNode::info.derefObjectFunction); |
+ } |
return V8TestNode::createWrapper(impl, creationContext, isolate); |
} |