@ai-ecoverse/slicc-kernel 1.164.4 → 1.164.5

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.
@@ -7385,7 +7385,7 @@ var init_version = __esm({
7385
7385
  "src/version.ts"() {
7386
7386
  "use strict";
7387
7387
  init_captured_globals();
7388
- KERNEL_VERSION = true ? "1.164.4" : "0.0.0-dev";
7388
+ KERNEL_VERSION = true ? "1.164.5" : "0.0.0-dev";
7389
7389
  OS_RELEASE = "6.0.0-slicc";
7390
7390
  }
7391
7391
  });
@@ -19700,6 +19700,7 @@ var hashOf = proto.getScriptHash;
19700
19700
  var isEval = proto.isEval;
19701
19701
  var originOf = proto.getEvalOrigin;
19702
19702
  var lineOf = proto.getLineNumber;
19703
+ var nameOf = proto.getScriptNameOrSourceURL;
19703
19704
  var ownNames = new capturedSet([
19704
19705
  apply(fileOf, self, []),
19705
19706
  apply(proto.getScriptNameOrSourceURL, self, [])
@@ -19737,12 +19738,22 @@ function rootOrigin(origin) {
19737
19738
  }
19738
19739
  return apply(slice, at, [0, end]);
19739
19740
  }
19741
+ function evalAt(origin) {
19742
+ return apply(startsWith, origin, ["eval at "]) === true;
19743
+ }
19744
+ function scriptOf(site) {
19745
+ if (apply(isEval, site, []) !== true) return apply(fileOf, site, []);
19746
+ const origin = apply(originOf, site, []);
19747
+ if (typeof origin !== "string" || evalAt(origin)) return void 0;
19748
+ return apply(nameOf, site, []);
19749
+ }
19740
19750
  function keptFrame(site) {
19741
19751
  const hash = apply(hashOf, site, []);
19742
19752
  if (hash === ownHash) return false;
19743
19753
  if (apply(isEval, site, []) === true) {
19744
19754
  const origin = apply(originOf, site, []);
19745
- return typeof origin === "string" && programName(rootOrigin(origin));
19755
+ if (typeof origin !== "string") return false;
19756
+ return !evalAt(origin) || programName(rootOrigin(origin));
19746
19757
  }
19747
19758
  const file = apply(fileOf, site, []);
19748
19759
  if (typeof file !== "string") return true;
@@ -19810,7 +19821,7 @@ function errorSourceOf(error) {
19810
19821
  if (!at || typeof at.sourceLine !== "string" || typeof at.lineNumber !== "number")
19811
19822
  return void 0;
19812
19823
  if (apply(setHas, ownNames, [at.scriptResourceName]) === true) return void 0;
19813
- const file = apply(isEval, site, []) === true ? void 0 : apply(fileOf, site, []);
19824
+ const file = scriptOf(site);
19814
19825
  if (at.scriptResourceName !== file || apply(lineOf, site, []) !== at.lineNumber) return void 0;
19815
19826
  const out = blank(null);
19816
19827
  out.sourceLine = at.sourceLine;