txiki.js
txiki.js copied to clipboard
Top level await
Hi,
One killer feature for simple scripting could be top level await.
Currently, top level await isn't supported by either quickjs or txiki.js, I can't tell for sure.
It's QuickJS. Once it gains support for it I'll update the dependency and txiki.js will have it too.
What is the proper way to wait for a Promise to resolve/reject from an eval
context in the meantime?
I guess an async iife?
Fixed in https://github.com/saghul/txiki.js/pull/362