Index: Source/bindings/tests/results/V8TestCustomNamedGetter.h |
diff --git a/Source/bindings/tests/results/V8TestCustomNamedGetter.h b/Source/bindings/tests/results/V8TestCustomNamedGetter.h |
index 1786d5cc35360e084d2e67310162bf1192261060..f54fced928be7cf53029e1a01a54dc0bf8344143 100644 |
--- a/Source/bindings/tests/results/V8TestCustomNamedGetter.h |
+++ b/Source/bindings/tests/results/V8TestCustomNamedGetter.h |
@@ -21,11 +21,11 @@ |
#ifndef V8TestCustomNamedGetter_h |
#define V8TestCustomNamedGetter_h |
-#include <v8.h> |
-#include "TestCustomNamedGetter.h" |
+#include "bindings/bindings/tests/idls/TestCustomNamedGetter.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(TestCustomNamedGetter* impl, v8::Handle<v8::O |
{ |
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 == V8TestCustomNamedGetter::info.derefObjectFunction); |
+ } |
return V8TestCustomNamedGetter::createWrapper(impl, creationContext, isolate); |
} |