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