diff options
-rw-r--r-- | pdf/mupdf-internal.h | 3 | ||||
-rw-r--r-- | pdf/pdf_jsimp_v8.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h index 7ac97f2a..c0fffcf5 100644 --- a/pdf/mupdf-internal.h +++ b/pdf/mupdf-internal.h @@ -674,7 +674,8 @@ enum JS_TYPE_NULL, JS_TYPE_STRING, JS_TYPE_NUMBER, - JS_TYPE_ARRAY + JS_TYPE_ARRAY, + JS_TYPE_BOOLEAN }; pdf_jsimp *pdf_new_jsimp(fz_context *ctx, void *jsctx); diff --git a/pdf/pdf_jsimp_v8.cpp b/pdf/pdf_jsimp_v8.cpp index 47fab860..d16a4663 100644 --- a/pdf/pdf_jsimp_v8.cpp +++ b/pdf/pdf_jsimp_v8.cpp @@ -164,6 +164,8 @@ public: return JS_TYPE_NUMBER; else if (pobj->IsArray()) return JS_TYPE_ARRAY; + else if (pobj->IsBoolean() || pobj->IsBooleanObject()) + return JS_TYPE_BOOLEAN; else return JS_TYPE_UNKNOWN; } |