@ai-ecoverse/slicc-kernel 1.141.2 → 1.141.3
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/kernel-worker.js +1 -1
- package/dist/kernel-worker.js.map +1 -1
- package/dist/node-process-worker.js +11 -6
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +1 -1
- package/dist/node.js.map +1 -1
- package/dist/process-worker.js +11 -6
- package/dist/process-worker.js.map +3 -3
- package/package.json +7 -7
package/dist/process-worker.js
CHANGED
|
@@ -1555,6 +1555,9 @@ function refusal(err) {
|
|
|
1555
1555
|
const code2 = err?.code;
|
|
1556
1556
|
return code2 === "EACCES" || code2 === "EPERM";
|
|
1557
1557
|
}
|
|
1558
|
+
function gone(err) {
|
|
1559
|
+
return err?.code === "ENOENT";
|
|
1560
|
+
}
|
|
1558
1561
|
function young(s) {
|
|
1559
1562
|
return performance.now() - (s.filledAt ?? Number.NEGATIVE_INFINITY) < SHARED_TTL_MS;
|
|
1560
1563
|
}
|
|
@@ -2072,7 +2075,9 @@ function createStreamOps(h) {
|
|
|
2072
2075
|
if (s.handle === void 0) h.handled.delete(node);
|
|
2073
2076
|
else h.handled.add(node);
|
|
2074
2077
|
} catch (err) {
|
|
2075
|
-
if (refusal(err)
|
|
2078
|
+
if (refusal(err) || gone(err)) {
|
|
2079
|
+
throw new Fs.ErrnoError(wasiErrno(err.code));
|
|
2080
|
+
}
|
|
2076
2081
|
}
|
|
2077
2082
|
};
|
|
2078
2083
|
const permitted = (stream, created) => {
|
|
@@ -2778,7 +2783,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2778
2783
|
var init_version = __esm({
|
|
2779
2784
|
"src/version.ts"() {
|
|
2780
2785
|
"use strict";
|
|
2781
|
-
KERNEL_VERSION = true ? "1.141.
|
|
2786
|
+
KERNEL_VERSION = true ? "1.141.3" : "0.0.0-dev";
|
|
2782
2787
|
OS_RELEASE = "6.0.0-slicc";
|
|
2783
2788
|
}
|
|
2784
2789
|
});
|
|
@@ -6976,7 +6981,7 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
|
|
|
6976
6981
|
const live = (miss, path) => miss.until > now() && young2(miss) && (view === void 0 || miss.gen === void 0 || !view.changedSince(miss.gen, path).changed);
|
|
6977
6982
|
const seen = new SeenAt(view, lstats);
|
|
6978
6983
|
const kept = remember(cache, seen, blind, (entry2) => filled2.set(entry2));
|
|
6979
|
-
const
|
|
6984
|
+
const gone2 = (path) => goneAbove([lstats, stats], live, path);
|
|
6980
6985
|
const usable = (map, path) => {
|
|
6981
6986
|
const hit = map.get(path);
|
|
6982
6987
|
if (hit === void 0) return void 0;
|
|
@@ -6988,7 +6993,7 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
|
|
|
6988
6993
|
cache.fresh();
|
|
6989
6994
|
let hit = usable(map, path);
|
|
6990
6995
|
if (hit === void 0) {
|
|
6991
|
-
const missing2 =
|
|
6996
|
+
const missing2 = gone2(path);
|
|
6992
6997
|
if (missing2) throw missing2.error;
|
|
6993
6998
|
hit = fetched({ view, now, seen, filled: filled2, cache }, map, path, get);
|
|
6994
6999
|
}
|
|
@@ -11502,7 +11507,7 @@ var init_wasi_host = __esm({
|
|
|
11502
11507
|
size: BigInt(size)
|
|
11503
11508
|
};
|
|
11504
11509
|
}
|
|
11505
|
-
statOrphanable(path, size, orphan = false,
|
|
11510
|
+
statOrphanable(path, size, orphan = false, gone2 = false) {
|
|
11506
11511
|
let s;
|
|
11507
11512
|
if (!orphan) {
|
|
11508
11513
|
try {
|
|
@@ -11511,7 +11516,7 @@ var init_wasi_host = __esm({
|
|
|
11511
11516
|
}
|
|
11512
11517
|
}
|
|
11513
11518
|
const out = this.sized(path, s, size);
|
|
11514
|
-
return
|
|
11519
|
+
return gone2 ? { ...out, nlink: 0n } : out;
|
|
11515
11520
|
}
|
|
11516
11521
|
synthetic(path) {
|
|
11517
11522
|
return deviceOf(path) !== void 0 || path === SEALED_PATH2 && !!this.o.kernel.sys.openSealed || path === CLIPBOARD_PATH2 && !!this.o.kernel.sys.openClipboard;
|