windowjs / windowjs

Window.js is an open-source Javascript runtime for desktop graphics programming.

Home Page:https://windowjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support top-level await in the console

joaodasilva opened this issue · comments

This should work in the console:

s = await File.readText('README.md')

But fails with a SyntaxError:

Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules

ezoic increase your site revenue