From c06f5fd5a8244d8028ab385fb8ffbac1e016d5c7 Mon Sep 17 00:00:00 2001 From: rina Date: Tue, 27 Aug 2024 15:12:58 +1000 Subject: [PATCH] return in formatOCamlException --- web/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/worker.js b/web/worker.js index 5e2ed01..f47517b 100644 --- a/web/worker.js +++ b/web/worker.js @@ -2,7 +2,7 @@ importScripts('js.bc.js', 'cache.js', 'lib/pako.min.js', 'lib/comlink.js'); const formatOCamlExceptions = f => (...args) => { try { - f(...args); + return f(...args); } catch (e) { if (e instanceof Array) { // convert ocaml representation of errors into