You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, in node, an error normally allows us to resume, putting us back at the prompt:
$ node
Welcome to Node.js v18.0.0.
Type ".help" for more information.
> b
Uncaught ReferenceError: b is not defined
>
But after requiring our new a.js operation, an error completely unrelated to the js_of_ocaml code causes the whole node process to exit:
$ node
Welcome to Node.js v18.0.0.
Type ".help" for more information.
> const a = require('./a.js');
undefined
> b
/Users/john/Desktop/jsootest/a.js:300
throw b}function
^
[ReferenceError: b is not defined]
$
Is this expected? I should say this also happens with my real project, which has an exports.ml like this:
Consider a blank
a.ml
Now, in node, an error normally allows us to resume, putting us back at the prompt:
But after requiring our new
a.js
operation, an error completely unrelated to thejs_of_ocaml
code causes the whole node process to exit:Is this expected? I should say this also happens with my real project, which has an
exports.ml
like this:I understood that would make it usable from node via
require
. It is usable, but it has this odd error behaviour.I'm using
js_of_ocaml
4.0.0 and node 18.0.0.The text was updated successfully, but these errors were encountered: