summaryrefslogtreecommitdiff
path: root/source/pdf/js/util.js.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/js/util.js.h')
-rw-r--r--source/pdf/js/util.js.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/pdf/js/util.js.h b/source/pdf/js/util.js.h
index 9ef529dc..de27f97d 100644
--- a/source/pdf/js/util.js.h
+++ b/source/pdf/js/util.js.h
@@ -1,3 +1,8 @@
+"Error.prototype.toString = function() {\n"
+"if (this.stackTrace) return this.name + ': ' + this.message + this.stackTrace;\n"
+"return this.name + ': ' + this.message;\n"
+"};\n"
+"\n"
"var MuPDF = {\n"
"monthPattern: /Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec/,\n"
"monthName: [\n"