Skip to content
Snippets Groups Projects
Commit 7003a399 authored by Cheng Shao's avatar Cheng Shao :beach:
Browse files

wasm: isolate nodejs-specific logic with the isNode flag in dyld

As we move towards supporting running the dyld script in the browser,
this commit implements the isNode module-level binding which is true
if dyld is running in nodejs. The nodejs-specific bits are gated under
isNode.

For the browser case, this commit introduces @bjorn3/browser_wasi_shim
as the wasi implementation; we already use it in quite a few projects
and it simply works.
parent d9b71e82
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment