summaryrefslogtreecommitdiff
path: root/fxjs/JS_Define.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/JS_Define.cpp')
-rw-r--r--fxjs/JS_Define.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/JS_Define.cpp b/fxjs/JS_Define.cpp
index 90f7557422..171e05c66e 100644
--- a/fxjs/JS_Define.cpp
+++ b/fxjs/JS_Define.cpp
@@ -232,7 +232,7 @@ double JS_DateParse(const WideString& str) {
v8::Local<v8::Function> funC = v8::Local<v8::Function>::Cast(v);
const int argc = 1;
v8::Local<v8::Value> timeStr =
- CJS_Runtime::CurrentRuntimeFromIsolate(pIsolate)->NewString(
+ CJS_Runtime::RuntimeFromIsolateCurrentContext(pIsolate)->NewString(
str.AsStringView());
v8::Local<v8::Value> argv[argc] = {timeStr};
v = funC->Call(context, context->Global(), argc, argv).ToLocalChecked();