Closed getify closed 5 years ago
Here's another expression of (possibly) the same bug:
await;
is not allowed, and should throw an exception, but RunJS just silently does nothing.
Just FYI... I have babel transpilation turned off and this bug is still happening.
I'm able to replicate the extra console output. Looks like a bug, I will investigate further.
Regarding the await;
It does complain if I have transpilation turned on but not if it is off. The only difference in the code is that the transpiled version has "use strict";
prepended to it.
It's a syntax error regardless of strict mode or not. try it in a chrome console.
Indeed. I need to investigate further.
This has been a tough issue to solve but I believe I have a solution now. I'm going to write a few more test cases to make sure, and then push a release.
This is now resolved in version 1.2.1 Thanks again for raising this!
Looks great, thanks!
I'm not sure what's going on here... dunno if this is a babel transpilation issue or something about how your code instruments and captures each line of output.
This code is fine:
But when I add a single
console.log(..)
statement:Notice the extra
3
(on line 3 of the output) before it then prints2
and3
(in the correct order).Here's an even more severe illustration of whatever the bug is:
See the extra
2
and1
being printed, before the3
,2
,1
output in expected order?