Replies: 1 comment
|
No — not if The important detail is that the bundled this.bindings = wasiConfig.bindings || defaultConfig.bindings;
const bindings = this.bindings;
fs = bindings.fs;The functions stored in
Step 3 can call Until it is fixed, I would avoid using differently configured WASI instances in the same Bun process; use one shared FS adapter or separate processes. A robust fix would be to remove the module-level
Simply changing line 802 to a constructor-local |
Uh oh!
There was an error while loading. Please reload this page.
bun/src/js/node/wasi.ts
Line 802 in 6352b79
Is this the intended design? it makes it impossible to create proper isolation between
WASIinstancesFurthermore, it seems insecure to allow the
fsbinding shared across all WASI instances to simply be silently overwritten on each call tonew WASIAll reactions