summaryrefslogtreecommitdiff
path: root/fxjs/cjs_globalarrays.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_globalarrays.cpp')
-rw-r--r--fxjs/cjs_globalarrays.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fxjs/cjs_globalarrays.cpp b/fxjs/cjs_globalarrays.cpp
index 7857161205..818b13f0e8 100644
--- a/fxjs/cjs_globalarrays.cpp
+++ b/fxjs/cjs_globalarrays.cpp
@@ -16,7 +16,8 @@
(rt)->DefineGlobalConst( \
(name), [](const v8::FunctionCallbackInfo<v8::Value>& info) { \
CJS_Runtime* pCurrentRuntime = \
- CJS_Runtime::CurrentRuntimeFromIsolate(info.GetIsolate()); \
+ CJS_Runtime::RuntimeFromIsolateCurrentContext( \
+ info.GetIsolate()); \
if (pCurrentRuntime) \
info.GetReturnValue().Set(pCurrentRuntime->GetConstArray(name)); \
}); \