Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/postamble_minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,16 @@ null;

}

#if WASM == 2
#if WASM == 2 || MODULARIZE
, (error) => {
#if ASSERTIONS
console.error(error);
#endif

#if MODULARIZE
readyPromiseReject?.(error);
#endif

#if ENVIRONMENT_MAY_BE_NODE || ENVIRONMENT_MAY_BE_SHELL
if (globalThis.location) {
#endif
Expand All @@ -325,7 +329,7 @@ null;
}
#endif
}
#endif // WASM == 2
#endif // WASM == 2 || MODULARIZE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the rest of this error block (the stuff relating toe location should probably not be enabled when you build with MODULARIZE?

);

#if PTHREADS || WASM_WORKERS
Expand Down