Skip to content
Closed
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
9 changes: 9 additions & 0 deletions wasm_patches/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Module.wasmTable = wasmTable;
// Emscripten has a bug where it accidentally exposes an empty object as Module.ERRNO_CODES
Module.ERRNO_CODES = ERRNO_CODES;

// these are only defined for emscripten>=4.0.0
if (typeof getCppExceptionTag !== 'undefined') {
Module['getCppExceptionTag'] = getCppExceptionTag;
}

if (typeof getExceptionMessage !== 'undefined') {
Module['getExceptionMessage'] = getExceptionMessage;
}

Module['async_init'] = async function(
kernel_root_url,
pkg_root_url,
Expand Down
Loading