Not support top-level-await
jim-king-2000 opened this issue · 7 comments
jim-king-2000 commented
'top-level-await' is a killer feature. I suggest quickjs to support it.
bellard commented
No plan to support it yet.
jaredkrinke commented
I was also expecting top-level await
to work for a module (e.g. qjs -m file-with-top-level-await.js
), so consider this a +1 to supporting this. Currently, I just get an error:
SyntaxError: unexpected 'await' keyword
saghul commented
There is patch adding support for it on the mailing list.
jaredkrinke commented
I think this commit includes the patch mentioned above:
tionis commented
No plan to support it yet.
As it has been nearly 3 years since then, are there still no plans to support this.
If not why?
saghul commented
It's already supported in master.
tionis commented
Oh, then I have overlooked it.
Thanks for the clarification!