diff options
Diffstat (limited to 'fpdfsdk/javascript/console.cpp')
-rw-r--r-- | fpdfsdk/javascript/console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/console.cpp b/fpdfsdk/javascript/console.cpp index adfbb444e0..c3cb8b7da7 100644 --- a/fpdfsdk/javascript/console.cpp +++ b/fpdfsdk/javascript/console.cpp @@ -23,8 +23,8 @@ const JSMethodSpec CJS_Console::MethodSpecs[] = {{"clear", clear_static}, int CJS_Console::ObjDefnID = -1; // static -void CJS_Console::DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType) { - ObjDefnID = pEngine->DefineObj("console", eObjType, +void CJS_Console::DefineJSObjects(CFXJS_Engine* pEngine) { + ObjDefnID = pEngine->DefineObj("console", FXJSOBJTYPE_STATIC, JSConstructor<CJS_Console, console>, JSDestructor<CJS_Console>); DefineMethods(pEngine, ObjDefnID, MethodSpecs); |