Open Psychpsyo opened 6 days ago
I've looked into this some more, this seems to be due to the fact that modules with top-level-await aren't properly supported yet.
SourceTextModule.cpp
just wraps all the module's code in an async function and runs tht instead of using AsyncBlockStart directly.
(and making it do that just breaks things even further, so I've decided that this is beyond me and I won't do it as my first PR)
Summary
Importing this module throws a ReferenceError ('foo' is not defined) instead of working:
Operating system
Linux
Steps to reproduce
index.html:
scriptA.mjs:
scriptB.mjs:
Expected behavior
The module should be imported successfully and
test
should be filled with the return value of foo(), async or not.Actual behavior
ReferenceError.
URL for a reduced test case
Not a reduced test case, but it does happen here, on page load, and makes the entire site unusable. https://battle.crossuniverse.net/intro/index.html
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
See screenshot below. (clipboard sharing to my Linux VM doesn't work -_-)
Screenshots or screen recordings
Build flags or config settings
none(?)
Contribute a patch?