summaryrefslogtreecommitdiff
path: root/fxjs/cfxjs_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjs_engine.h')
-rw-r--r--fxjs/cfxjs_engine.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/fxjs/cfxjs_engine.h b/fxjs/cfxjs_engine.h
index 0ee4fe5bf4..8c6c69c9be 100644
--- a/fxjs/cfxjs_engine.h
+++ b/fxjs/cfxjs_engine.h
@@ -22,7 +22,6 @@
#include "core/fxcrt/fx_string.h"
#include "fxjs/cfx_v8.h"
#include "fxjs/ijs_runtime.h"
-#include "v8/include/v8-util.h"
#include "v8/include/v8.h"
#ifdef PDF_ENABLE_XFA
@@ -128,9 +127,7 @@ class CFXJS_Engine : public CFX_V8 {
v8::Local<v8::Object> NewFXJSBoundObject(int nObjDefnID, FXJSOBJTYPE type);
void Error(const WideString& message);
- v8::Local<v8::Context> GetV8Context() {
- return v8::Local<v8::Context>::New(GetIsolate(), m_V8Context);
- }
+ v8::Local<v8::Context> GetV8Context();
v8::Local<v8::Array> GetConstArray(const WideString& name);
void SetConstArray(const WideString& name, v8::Local<v8::Array> array);