@poe-platform/safe-js 0.1.215 → 0.1.216
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/safe-js/chunks/{chunk-XEABTBIE.js → chunk-J5BFJAKX.js} +4 -2
- package/dist/safe-js/chunks/chunk-J5BFJAKX.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-VJZDZJ6B.js → chunk-WS5ICU3W.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/dist/safe-js/interp/budget.d.ts +1 -0
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-XEABTBIE.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-VJZDZJ6B.js.map → chunk-WS5ICU3W.js.map} +0 -0
|
@@ -191,6 +191,7 @@ var Budget = class {
|
|
|
191
191
|
retainedValueSources = /* @__PURE__ */ new Map();
|
|
192
192
|
compileGeneration = 0;
|
|
193
193
|
activeCompileOwner;
|
|
194
|
+
defaultCompileOwner;
|
|
194
195
|
compileUses = 0;
|
|
195
196
|
provisionalScopes = 0;
|
|
196
197
|
compileTickets = /* @__PURE__ */ new Map();
|
|
@@ -273,7 +274,7 @@ var Budget = class {
|
|
|
273
274
|
throw new SandboxError("reentry");
|
|
274
275
|
}
|
|
275
276
|
if (reset) this.reset();
|
|
276
|
-
const selected = owner ?? Object.freeze({ budget: this, generation: this.compileGeneration });
|
|
277
|
+
const selected = owner ?? (this.defaultCompileOwner ??= Object.freeze({ budget: this, generation: this.compileGeneration }));
|
|
277
278
|
this.activeCompileOwner = selected;
|
|
278
279
|
this.compileUses += 1;
|
|
279
280
|
let released = false;
|
|
@@ -391,6 +392,7 @@ var Budget = class {
|
|
|
391
392
|
reset() {
|
|
392
393
|
if (this.compileUses !== 0) throw new SandboxError("reentry");
|
|
393
394
|
this.compileGeneration += 1;
|
|
395
|
+
this.defaultCompileOwner = void 0;
|
|
394
396
|
this.provisionalScopes = 0;
|
|
395
397
|
this.compileTickets.clear();
|
|
396
398
|
this.completedCompileTickets.clear();
|
|
@@ -38633,4 +38635,4 @@ export {
|
|
|
38633
38635
|
FileSnapshotBackend,
|
|
38634
38636
|
run
|
|
38635
38637
|
};
|
|
38636
|
-
//# sourceMappingURL=chunk-
|
|
38638
|
+
//# sourceMappingURL=chunk-J5BFJAKX.js.map
|