From d5d79853959a252c8465f8d4e197e21c5bbdb78c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 9 Dec 2019 11:47:30 -0500 Subject: [PATCH] LP1855737 Don't send error object across shared worker port Data must be string-ifiable to pass across a shared web worker message port. In Firefox, at least, errors encountered during IndexedDB / Lovefield operations are not candidates for automatic stringification. Avoid trying to send the error object back to the caller. Signed-off-by: Bill Erickson Signed-off-by: Chris Sharp --- Open-ILS/web/js/ui/default/staff/offline-db-worker.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/offline-db-worker.js b/Open-ILS/web/js/ui/default/staff/offline-db-worker.js index 32399001e7..3e3780ebd4 100644 --- a/Open-ILS/web/js/ui/default/staff/offline-db-worker.js +++ b/Open-ILS/web/js/ui/default/staff/offline-db-worker.js @@ -340,7 +340,6 @@ function dispatchRequest(port, data) { function replyError(err) { console.error('shared worker replying with error', err); data.status = 'ERR'; - data.error = err; port.postMessage(data); } -- 2.11.0