Index: fpdfsdk/src/javascript/JS_Context.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp |
index 51c18f12493a62ca9bef16b26e15f7b3c23bfbd7..3c9be58013b130495456e12865aedb6ae608d1d0 100644 |
--- a/fpdfsdk/src/javascript/JS_Context.cpp |
+++ b/fpdfsdk/src/javascript/JS_Context.cpp |
@@ -56,8 +56,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) { |