LP1855737 Don't send error object across shared worker port
authorBill Erickson <berickxx@gmail.com>
Mon, 9 Dec 2019 16:47:30 +0000 (11:47 -0500)
committerKyle Huckins <khuckins@catalyte.io>
Thu, 21 Jan 2021 20:38:36 +0000 (20:38 +0000)
commit13d6197cf439906e33348388e228f49707caaf9b
treeed553f0b36c8175441b33ec955b5dcee2f1aebc2
parent1a4f38396173d9c4120d1f7fd9d86b8b09672539
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>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/offline-db-worker.js