Runtime error when used with BuckleScript 8.1.0
gaku-sei opened this issue · 3 comments
gaku-sei commented
The new BS version seems to break, at runtime, the wonka take function:
The generated code for the take function looks something like this:
if (state.taken < max) {
if (signal) {
state.taken = max;
return state.talkback(/* Close */1); // Breaks here
} else {
return state.talkback(/* Pull */0);
}
}
When logging, the stage.talkback
propery is indeed undefined
😞
BlueHotDog commented
Tried looking at this, how this can even happen? isnt the whole point of Reasonml is to avoid such issues?