Index: Source/bindings/tests/results/V8TestEventConstructor.h |
diff --git a/Source/bindings/tests/results/V8TestEventConstructor.h b/Source/bindings/tests/results/V8TestEventConstructor.h |
index 3414d975bf6e0436255fae62461dd02437e94df7..7a42da00afbf4dade5baaff7b8a66b3bffb1ab21 100644 |
--- a/Source/bindings/tests/results/V8TestEventConstructor.h |
+++ b/Source/bindings/tests/results/V8TestEventConstructor.h |
@@ -82,6 +82,21 @@ inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Obj |
return wrap(impl, creationContext, isolate); |
} |
+inline UnsafePersistent<v8::Object> toV8Persistent(TestEventConstructor* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+{ |
+ ASSERT(impl); |
+ |
+ UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestEventConstructor>(impl, isolate); |
+ if (LIKELY(!wrapperPersistent.isEmpty())) |
+ return wrapperPersistent; |
+ |
+ wrap(impl, creationContext, isolate); |
+ |
+ wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestEventConstructor>(impl, isolate); |
+ ASSERT(!wrapperPersistent.isEmpty()); |
+ return wrapperPersistent; |
+} |
+ |
template<typename CallbackInfo> |
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstructor* impl, v8::Handle<v8::Object> creationContext) |
{ |