diff --git a/bower.json b/bower.json index d2314907e..3b1c51277 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.392", + "version": "1.1.394", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 9fa3f485c..07e327c60 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.392'; -PDFJS.build = 'c56dc9a'; +PDFJS.version = '1.1.394'; +PDFJS.build = 'ede5235'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) { data: result }); }, function (reason) { + if (reason instanceof Error) { + // Serialize error to avoid "DataCloneError" + reason = reason + ''; + } comObj.postMessage({ isReply: true, callbackId: data.callbackId, diff --git a/build/pdf.js b/build/pdf.js index db3972478..c17efbed6 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.392'; -PDFJS.build = 'c56dc9a'; +PDFJS.version = '1.1.394'; +PDFJS.build = 'ede5235'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) { data: result }); }, function (reason) { + if (reason instanceof Error) { + // Serialize error to avoid "DataCloneError" + reason = reason + ''; + } comObj.postMessage({ isReply: true, callbackId: data.callbackId, diff --git a/build/pdf.worker.js b/build/pdf.worker.js index a9035bada..119a168bc 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.392'; -PDFJS.build = 'c56dc9a'; +PDFJS.version = '1.1.394'; +PDFJS.build = 'ede5235'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1508,6 +1508,10 @@ function MessageHandler(name, comObj) { data: result }); }, function (reason) { + if (reason instanceof Error) { + // Serialize error to avoid "DataCloneError" + reason = reason + ''; + } comObj.postMessage({ isReply: true, callbackId: data.callbackId, diff --git a/package.json b/package.json index 11f80e946..d46af20c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.392", + "version": "1.1.394", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",