21 lines
885 B
Text
21 lines
885 B
Text
|
|
# Suspending imports for the post-link Asyncify pass (consumed by apply-asyncify.sh).
|
||
|
|
# Binaryen's --asyncify instruments every function that can transitively REACH one of these
|
||
|
|
# imports. This is the BOUNDARY list, not a function allowlist — the callers are auto-discovered.
|
||
|
|
#
|
||
|
|
# We run Asyncify post-link (outside emcc), so emcc's automatic import generation never runs;
|
||
|
|
# this file replicates emcc's default async built-ins + our own suspending imports. A superset
|
||
|
|
# is safe — binaryen ignores any import the wasm doesn't actually contain.
|
||
|
|
#
|
||
|
|
# --- Emscripten async built-ins (what emcc auto-adds for the in-link Asyncify) ---
|
||
|
|
env.emscripten_sleep
|
||
|
|
env.emscripten_scan_registers
|
||
|
|
env.emscripten_lazy_load_code
|
||
|
|
env.emscripten_wget
|
||
|
|
env.emscripten_wget_data
|
||
|
|
env.emscripten_idb_*
|
||
|
|
#
|
||
|
|
# --- Project suspending imports ---
|
||
|
|
env.__asyncjs__*
|
||
|
|
env.emscripten_fiber_swap
|
||
|
|
env.startModal
|
||
|
|
env.js_*
|