LP1855737 Don't send error object across shared worker port user/berick/lp1855737-ff-data-clone-err
authorBill Erickson <berickxx@gmail.com>
Mon, 9 Dec 2019 16:47:30 +0000 (11:47 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 9 Dec 2019 16:52:33 +0000 (11:52 -0500)
commitbff06f73bdd4926f4f796e096caf7f2383301941
tree989b91ce38b128b99819b87a61599632b1657147
parent1711f0fe3fbb09f56e2f4befd13de076fc621bb3
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 <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/offline-db-worker.js