Skip to content

Commit

Permalink
return in formatOCamlException
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Aug 27, 2024
1 parent 38edcb1 commit c06f5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c06f5fd

Please sign in to comment.