@ai-ecoverse/slicc-kernel 1.158.0 → 1.159.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.
@@ -1418,6 +1418,7 @@ async function hostDriver(start, load) {
1418
1418
 
1419
1419
  // src/node-lockdown.ts
1420
1420
  import { isBuiltin, registerHooks } from "node:module";
1421
+ import { types } from "node:util";
1421
1422
 
1422
1423
  // src/process/js/lockdown.ts
1423
1424
  var BLOCKED_GLOBALS = [
@@ -1568,6 +1569,27 @@ function nodeLockdown(scope = globalThis) {
1568
1569
  vacate(scope, NODE_SLOTS);
1569
1570
  refuseModules();
1570
1571
  }
1572
+ var isPromise = types.isPromise;
1573
+ var hasOwn = Object.hasOwn;
1574
+ var endsWith = String.prototype.endsWith;
1575
+ var sliceOf = String.prototype.slice;
1576
+ var toHex = Number.prototype.toString;
1577
+ var builtin = process.getBuiltinModule.bind(process);
1578
+ var find = Array.prototype.find;
1579
+ var ownKeys = Reflect.ownKeys;
1580
+ var ownDescriptor = Reflect.getOwnPropertyDescriptor;
1581
+ var BASE = Object.prototype;
1582
+ function snapshot(of) {
1583
+ const keys = ownKeys(of);
1584
+ const out = [];
1585
+ for (let i = 0; i < keys.length; i++) {
1586
+ const key = keys[i];
1587
+ out[i] = [key, ownDescriptor(of, key)];
1588
+ }
1589
+ return out;
1590
+ }
1591
+ var BASE_SNAPSHOT = snapshot(BASE);
1592
+ var SERIALIZED = [Array.prototype, String.prototype, Number.prototype, Boolean.prototype];
1571
1593
 
1572
1594
  // src/node-driver-worker.ts
1573
1595
  parentPort?.once("message", (start) => {