Index: fpdfsdk/src/javascript/JS_Context.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp |
index 1e42b50138794efd1cc8a86f73a8e6edcbec30cd..2bee913ed766153d72bd62230f61e06afc17c031 100644 |
--- a/fpdfsdk/src/javascript/JS_Context.cpp |
+++ b/fpdfsdk/src/javascript/JS_Context.cpp |
@@ -55,8 +55,8 @@ FX_BOOL CJS_Context::RunScript(const CFX_WideString& script, |
FXJSErr error = {NULL, NULL, 0}; |
int nRet = 0; |
if (script.GetLength() > 0) { |
- nRet = JS_Execute(*m_pRuntime, this, script.c_str(), script.GetLength(), |
- &error); |
+ nRet = JS_Execute(m_pRuntime->GetIsolate(), this, script.c_str(), |
+ script.GetLength(), &error); |
} |
if (nRet < 0) { |