Index: fpdfsdk/src/javascript/JS_Runtime.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp |
index 8a0d6666bb5de5b479275acb32298aaada685c3d..1d2fa84323bd200bde57e9c7fa47e406faf720d6 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp |
@@ -33,6 +33,11 @@ |
v8::Global<v8::ObjectTemplate>& _getGlobalObjectTemplate(v8::Isolate* pIsolate); |
// static |
+void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { |
+ FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate)); |
+} |
+ |
+// static |
IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { |
return new CJS_Runtime(pEnv); |
} |