bellard/quickjs

Not support top-level-await

jim-king-2000 opened this issue · 7 comments

'top-level-await' is a killer feature. I suggest quickjs to support it.

No plan to support it yet.

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

There is patch adding support for it on the mailing list.

I think this commit includes the patch mentioned above:

saghul/txiki.js@c0ade67

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?

It's already supported in master.

Oh, then I have overlooked it.
Thanks for the clarification!