Index: fpdfsdk/src/javascript/JS_Runtime_Stub.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp b/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp |
index 2c5e625fdc43ded243198af3e8e07af7368f23c1..a7b081faf74fe2d38d12a2f5bc0376ed30bba938 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp |
@@ -15,7 +15,7 @@ class CJS_ContextStub final : public IJS_Context { |
// IJS_Context: |
FX_BOOL RunScript(const CFX_WideString& script, |
- CFX_WideString& info) override { |
+ CFX_WideString* info) override { |
return FALSE; |
} |
@@ -136,6 +136,12 @@ class CJS_RuntimeStub final : public IJS_Runtime { |
} |
CPDFSDK_Document* GetReaderDocument() override { return m_pDoc; } |
+ int Execute(IJS_Context* cc, |
+ const wchar_t* script, |
+ CFX_WideString* info) override { |
+ return 0; |
+ } |
+ |
protected: |
CPDFSDK_Document* m_pDoc; |
nonstd::unique_ptr<CJS_ContextStub> m_pContext; |