Skip to content
Snippets Groups Projects
Commit 1cb735f2 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.

(cherry picked from commit 7003a399)
(cherry picked from commit 9156318f)
parent 90c1ed7d
No related branches found
No related tags found
No related merge requests found
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