Index: Source/bindings/tests/results/V8TestException.h |
diff --git a/Source/bindings/tests/results/V8TestException.h b/Source/bindings/tests/results/V8TestException.h |
index f4035e9794652867acd9f062140448d98da86d62..e9e221903dc90ed33490f3e1bc1e4a5f216e4c5f 100644 |
--- a/Source/bindings/tests/results/V8TestException.h |
+++ b/Source/bindings/tests/results/V8TestException.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestException_h |
#define V8TestException_h |
-#include <v8.h> |
-#include "TestException.h" |
+#include "bindings/bindings/tests/idls/TestException.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> |
@@ -62,6 +62,12 @@ inline v8::Handle<v8::Object> wrap(TestException* impl, v8::Handle<v8::Object> c |
{ |
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 == V8TestException::info.derefObjectFunction); |
+ } |
return V8TestException::createWrapper(impl, creationContext, isolate); |
} |