diff options
Diffstat (limited to 'fpdfsdk/javascript/cjs_global.cpp')
-rw-r--r-- | fpdfsdk/javascript/cjs_global.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/cjs_global.cpp b/fpdfsdk/javascript/cjs_global.cpp index d38455d8be..658cc86f16 100644 --- a/fpdfsdk/javascript/cjs_global.cpp +++ b/fpdfsdk/javascript/cjs_global.cpp @@ -224,8 +224,8 @@ void CJS_Global::DefineAllProperties(CFXJS_Engine* pEngine) { } // static -void CJS_Global::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) { - ObjDefnID = pEngine->DefineObj("global", eObjType, +void CJS_Global::DefineJSObjects(CFXJS_Engine* pEngine) { + ObjDefnID = pEngine->DefineObj("global", FXJSOBJTYPE_STATIC, JSConstructor<CJS_Global, JSGlobalAlternate>, JSDestructor<CJS_Global>); DefineMethods(pEngine, ObjDefnID, MethodSpecs); |