diff options
Diffstat (limited to 'fpdfsdk/javascript/console.cpp')
-rw-r--r-- | fpdfsdk/javascript/console.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/fpdfsdk/javascript/console.cpp b/fpdfsdk/javascript/console.cpp index fdef98f34f..1b0d81d824 100644 --- a/fpdfsdk/javascript/console.cpp +++ b/fpdfsdk/javascript/console.cpp @@ -14,18 +14,15 @@ #include "fpdfsdk/javascript/JS_Value.h" #include "fpdfsdk/javascript/cjs_event_context.h" -BEGIN_JS_STATIC_CONST(CJS_Console) -END_JS_STATIC_CONST() +JSConstSpec CJS_Console::ConstSpecs[] = {{0, JSConstSpec::Number, 0, 0}}; -BEGIN_JS_STATIC_PROP(CJS_Console) -END_JS_STATIC_PROP() +JSPropertySpec CJS_Console::PropertySpecs[] = {{0, 0, 0}}; -BEGIN_JS_STATIC_METHOD(CJS_Console) -JS_STATIC_METHOD_ENTRY(clear) -JS_STATIC_METHOD_ENTRY(hide) -JS_STATIC_METHOD_ENTRY(println) -JS_STATIC_METHOD_ENTRY(show) -END_JS_STATIC_METHOD() +JSMethodSpec CJS_Console::MethodSpecs[] = {{L"clear", clear_static}, + {L"hide", hide_static}, + {L"println", println_static}, + {L"show", show_static}, + {0, 0}}; IMPLEMENT_JS_CLASS(CJS_Console, console) |