@ai-ecoverse/slicc-kernel 1.166.4 → 1.167.0
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/README.md +1 -1
- package/dist/kernel-worker.js +183 -36
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js +12 -1
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +18 -7
- package/dist/node-process-worker.cjs.map +3 -3
- package/dist/node-process-worker.js +18 -7
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +183 -36
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/fs/unlinked.d.ts +18 -0
- package/dist/types/launcher.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1531,6 +1531,17 @@ var programHashes = /* @__PURE__ */ new Set();
|
|
|
1531
1531
|
var programNames = /* @__PURE__ */ new Set();
|
|
1532
1532
|
var SOURCE_NAMES = 4096;
|
|
1533
1533
|
var sourceNames = /* @__PURE__ */ new Set();
|
|
1534
|
+
var setDelete = Set.prototype.delete;
|
|
1535
|
+
var setValues = Set.prototype.values;
|
|
1536
|
+
var sizeOf = Object.getOwnPropertyDescriptor(Set.prototype, "size")?.get;
|
|
1537
|
+
var nextOf = Object.getPrototypeOf((/* @__PURE__ */ new Set()).values()).next;
|
|
1538
|
+
function noteName(name) {
|
|
1539
|
+
if (apply(setDelete, sourceNames, [name]) !== true && apply(sizeOf, sourceNames, []) >= SOURCE_NAMES) {
|
|
1540
|
+
const oldest = apply(nextOf, apply(setValues, sourceNames, []), []);
|
|
1541
|
+
apply(setDelete, sourceNames, [oldest.value]);
|
|
1542
|
+
}
|
|
1543
|
+
apply(setAdd, sourceNames, [name]);
|
|
1544
|
+
}
|
|
1534
1545
|
function programName(name) {
|
|
1535
1546
|
return apply(startsWith, name, ["data:"]) === true || apply(setHas, programNames, [name]) === true || apply(setHas, sourceNames, [name]) === true;
|
|
1536
1547
|
}
|
|
@@ -1542,7 +1553,7 @@ function noteSourceUrls(trace) {
|
|
|
1542
1553
|
if (typeof origin !== "string" || evalAt(origin)) continue;
|
|
1543
1554
|
const name = apply(nameOf, site, []);
|
|
1544
1555
|
if (typeof name !== "string" || apply(setHas, ownNames, [name]) === true) continue;
|
|
1545
|
-
|
|
1556
|
+
noteName(name);
|
|
1546
1557
|
}
|
|
1547
1558
|
}
|
|
1548
1559
|
function rootOrigin(origin) {
|