Index: Source/bindings/tests/results/V8TestTypedefs.h |
diff --git a/Source/bindings/tests/results/V8TestTypedefs.h b/Source/bindings/tests/results/V8TestTypedefs.h |
index 193d2cca1275ac5aa11ae6638517a8fb7284e6dc..36f9ff1c7499da40075415efe047fd6a311dfe6c 100644 |
--- a/Source/bindings/tests/results/V8TestTypedefs.h |
+++ b/Source/bindings/tests/results/V8TestTypedefs.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestTypedefs_h |
#define V8TestTypedefs_h |
-#include <v8.h> |
-#include "TestTypedefs.h" |
+#include "bindings/bindings/tests/idls/TestTypedefs.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(TestTypedefs* impl, v8::Handle<v8::Object> cr |
{ |
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 == V8TestTypedefs::info.derefObjectFunction); |
+ } |
return V8TestTypedefs::createWrapper(impl, creationContext, isolate); |
} |