Closed thangngoc89 closed 5 years ago
I noticed this when I accidentally ran a non-tail-recursive endless function, along the lines of:
let rec recurse = xs => [0, ...recurse(xs)];
This pretty quickly blows the stack in the browser, but then deleting it and replacing with Js.log("a")
doesn't produce any output.
@mlms13 yeah. i don't know the root cause of this but that sounds about right
Found it, here is the root cause:
I think we are supposed to create a new Polestar instance if error happened
Even though I added catch error pretty much everywhere, the playground can't recover fatal errors.
Reproduce:
It should produce a Type error. Now try to clean it and type in invalid code, it won't be executed.