summaryrefslogtreecommitdiff
path: root/fxjs/fxjs_v8.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/fxjs_v8.h')
-rw-r--r--fxjs/fxjs_v8.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h
index 4575235755..0372ade9ce 100644
--- a/fxjs/fxjs_v8.h
+++ b/fxjs/fxjs_v8.h
@@ -137,7 +137,11 @@ class CFXJS_Engine : public CJS_V8 {
v8::Local<v8::Object> obj);
using Destructor = void (*)(CFXJS_Engine* pEngine, v8::Local<v8::Object> obj);
- static CFXJS_Engine* CurrentEngineFromIsolate(v8::Isolate* pIsolate);
+ static CFXJS_Engine* EngineFromIsolateCurrentContext(v8::Isolate* pIsolate);
+ static CFXJS_Engine* EngineFromContext(v8::Local<v8::Context> pContext);
+ static void SetEngineInContext(CFXJS_Engine* pEngine,
+ v8::Local<v8::Context> pContext);
+
static int GetObjDefnID(v8::Local<v8::Object> pObj);
// Always returns a valid, newly-created objDefnID.