diff options
Diffstat (limited to 'fpdfsdk/javascript/util.cpp')
-rw-r--r-- | fpdfsdk/javascript/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/util.cpp b/fpdfsdk/javascript/util.cpp index 96b2c8a6ef..28ab0bb95c 100644 --- a/fpdfsdk/javascript/util.cpp +++ b/fpdfsdk/javascript/util.cpp @@ -162,7 +162,7 @@ bool util::printd(CJS_Runtime* pRuntime, return false; } - if (p1.GetType() == CJS_Value::VT_number) { + if (p1.ToV8Value()->IsNumber()) { WideString swResult; switch (pRuntime->ToInt32(p1.ToV8Value())) { case 0: @@ -194,7 +194,7 @@ bool util::printd(CJS_Runtime* pRuntime, return true; } - if (p1.GetType() == CJS_Value::VT_string) { + if (p1.ToV8Value()->IsString()) { if (iSize > 2 && pRuntime->ToBoolean(params[2].ToV8Value())) { sError = JSGetStringFromID(IDS_STRING_JSNOTSUPPORT); return false; // currently, it doesn't support XFAPicture. |