We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 262a1f9 + f5faf86 commit 0922aa9Copy full SHA for 0922aa9
1 file changed
src/core/core_utils.js
@@ -632,6 +632,13 @@ function recoverJsURL(str) {
632
}
633
634
function numberToString(value) {
635
+ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")) {
636
+ assert(
637
+ typeof value === "number",
638
+ `numberToString - the value (${value}) should be a number.`
639
+ );
640
+ }
641
+
642
if (Number.isInteger(value)) {
643
return value.toString();
644
0 commit comments