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