| Index: fpdfsdk/include/jsapi/fxjs_v8.h
|
| diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h
|
| index f51340acd3be3741efee91d4a234a9642d13547c..6e8d2fa4785df3a2134ccfc321e89eeef4e01628 100644
|
| --- a/fpdfsdk/include/jsapi/fxjs_v8.h
|
| +++ b/fpdfsdk/include/jsapi/fxjs_v8.h
|
| @@ -68,9 +68,14 @@ using FXJS_CONSTRUCTOR = void (*)(IFXJS_Context* cc,
|
| using FXJS_DESTRUCTOR = void (*)(v8::Local<v8::Object> obj);
|
|
|
| // Call before making FXJS_PrepareIsolate call.
|
| -void FXJS_Initialize(unsigned int embedderDataSlot);
|
| +void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate);
|
| void FXJS_Release();
|
|
|
| +// Gets the global isolate set by FXJS_Initialize(), or makes a new one each
|
| +// time if there is no such isolate. Returns true if a new isolate had to be
|
| +// created.
|
| +bool FXJS_GetIsolate(v8::Isolate** pResultIsolate);
|
| +
|
| // Call before making FXJS_Define* calls. Resources allocated here are cleared
|
| // as part of FXJS_ReleaseRuntime().
|
| void FXJS_PrepareIsolate(v8::Isolate* pIsolate);
|
|
|