@ai-ecoverse/slicc-kernel 1.64.1 → 1.64.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.js CHANGED
@@ -7305,8 +7305,10 @@ var EARLY_WHOLE_FILE = 64 * 1024;
7305
7305
 
7306
7306
  // src/process/process-fds.ts
7307
7307
  var field2 = (text) => (text || "none").replace(/[\s\\]/g, (c) => `\\${c.charCodeAt(0).toString(8).padStart(3, "0")}`);
7308
+ var pinnedRoot;
7309
+ var rootKind = () => globalThis.navigator?.storage ? "opfs" : "memory";
7308
7310
  function mountTable(mounts = []) {
7309
- const root = globalThis.navigator?.storage ? "opfs" : "memory";
7311
+ const root = pinnedRoot ?? rootKind();
7310
7312
  const lines2 = [`${root} / ${root} rw 0 0`, "devfs /dev devfs rw 0 0", "proc /proc proc rw 0 0"];
7311
7313
  for (const m of mounts) {
7312
7314
  const options = Object.entries(m.options).map(([k, v]) => v === "" ? k : `${k}=${v}`);
@@ -11959,7 +11961,7 @@ function spawnWasmProcess(opts) {
11959
11961
  finish(...dying.status(data.code));
11960
11962
  } else if (data?.type === WASM_PROCESS_ERROR) {
11961
11963
  if (!dying.ending) opts.onError?.(String(data.message));
11962
- finish(...dying.status(CRASHED));
11964
+ finish(...dying.status(data.code));
11963
11965
  } else if (data?.type === WASM_THREAD_SPAWN && data.thread) {
11964
11966
  spawnThread(data.thread);
11965
11967
  }