Hello, I want to run a function that has await inside it:
async function loadStuff() {
await stuffLoading();
}
if I use emscripten_run_script its telling me that await is only valid in async function
EM_ASM(
await loadStuff();
)
Gives me an error SyntaxError: Unexpected token
How do I call async functions?
Hello, I want to run a function that has await inside it:
if I use
emscripten_run_scriptits telling me thatawait is only valid in async functionGives me an
error SyntaxError: Unexpected tokenHow do I call async functions?