@poe-platform/safe-js 0.1.268 → 0.1.269
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-3BMZELFG.js → chunk-VIBISLKQ.js} +11 -4
- package/dist/safe-js/chunks/{chunk-3BMZELFG.js.map → chunk-VIBISLKQ.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-YMFWKGFU.js → chunk-X6PGF53P.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/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-YMFWKGFU.js.map → chunk-X6PGF53P.js.map} +0 -0
|
@@ -12110,7 +12110,12 @@ function resolveSandboxValueNow(value, options) {
|
|
|
12110
12110
|
(reason) => Promise.reject(budgetIfNeeded(reason, options.budget))
|
|
12111
12111
|
);
|
|
12112
12112
|
}
|
|
12113
|
-
if (
|
|
12113
|
+
if (isSelfResolution(value, options.self)) {
|
|
12114
|
+
return Promise.reject(
|
|
12115
|
+
options.budget === void 0 ? new TypeError("Promise cannot resolve to itself.") : createSubsetErrorValue("TypeError", "Promise cannot resolve to itself.", [], options.budget)
|
|
12116
|
+
);
|
|
12117
|
+
}
|
|
12118
|
+
if (isSandboxPromise(value) && getSandboxPropertyDescriptor(value, "then", options.budget) === void 0) {
|
|
12114
12119
|
if (options.budget !== void 0) {
|
|
12115
12120
|
return resolvePromiseResult(value, options.budget, options.self);
|
|
12116
12121
|
}
|
|
@@ -12264,7 +12269,9 @@ function resolvePromiseResult(result, budget, self) {
|
|
|
12264
12269
|
createSubsetErrorValue("TypeError", "Promise cannot resolve to itself.", [], budget)
|
|
12265
12270
|
);
|
|
12266
12271
|
}
|
|
12267
|
-
if (!isSandboxPromise(result)
|
|
12272
|
+
if (!isSandboxPromise(result) || getSandboxPropertyDescriptor(result, "then", budget) !== void 0) {
|
|
12273
|
+
return resolveSandboxValue(result, { budget, self });
|
|
12274
|
+
}
|
|
12268
12275
|
const then = getPromiseMember("then", budget);
|
|
12269
12276
|
if (!isSandboxClosure(then)) return Promise.resolve(result);
|
|
12270
12277
|
return new Promise((resolve, reject) => {
|
|
@@ -12328,7 +12335,7 @@ function requiresPromiseResolution(value, budget) {
|
|
|
12328
12335
|
return descriptor !== void 0 && (!("value" in descriptor) || isSandboxClosure(descriptor.value));
|
|
12329
12336
|
}
|
|
12330
12337
|
function getThenable(value, budget) {
|
|
12331
|
-
if (typeof value !== "object" || value === null
|
|
12338
|
+
if (typeof value !== "object" || value === null) {
|
|
12332
12339
|
return void 0;
|
|
12333
12340
|
}
|
|
12334
12341
|
const descriptor = getSandboxPropertyDescriptor(value, "then", budget);
|
|
@@ -40093,4 +40100,4 @@ export {
|
|
|
40093
40100
|
FileSnapshotBackend,
|
|
40094
40101
|
run
|
|
40095
40102
|
};
|
|
40096
|
-
//# sourceMappingURL=chunk-
|
|
40103
|
+
//# sourceMappingURL=chunk-VIBISLKQ.js.map
|