Index: Source/bindings/tests/results/V8TestNamedConstructor.h |
diff --git a/Source/bindings/tests/results/V8TestNamedConstructor.h b/Source/bindings/tests/results/V8TestNamedConstructor.h |
index bf2415e4808689ed5e2f4960e735259fe756fb84..df2530c04bc66b65def2dd8cdeb4f393572a13e4 100644 |
--- a/Source/bindings/tests/results/V8TestNamedConstructor.h |
+++ b/Source/bindings/tests/results/V8TestNamedConstructor.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestNamedConstructor_h |
#define V8TestNamedConstructor_h |
-#include <v8.h> |
-#include "TestNamedConstructor.h" |
+#include "bindings/bindings/tests/idls/TestNamedConstructor.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> |
@@ -69,6 +69,12 @@ inline v8::Handle<v8::Object> wrap(TestNamedConstructor* 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 == V8TestNamedConstructor::info.derefObjectFunction); |
+ } |
return V8TestNamedConstructor::createWrapper(impl, creationContext, isolate); |
} |