Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by kevin_thibedeau on Thursday August 06, 2020 @01:26PM
(#24073191)
Not going to work for async.
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by Macha on Thursday August 06, 2020 @01:32PM
(#24073275)
Why not? Provide your own future implementation, transform the async code into a state machine. Babel does exactly this for JavaScript async.
Sure the generated code is a horrific mess to look at but even that's a solved problem with sourcemaps if you need to debug it.
Oh but there is. If you can map them to bytecode, you can map them to Python 2, which is a fully capable language. It won't be a one-to-one map, but that's also not required.