"use strict"
// tracing: off
Object.defineProperty(exports, "__esModule", { value: true })
exports.sandboxWith = void 0
const sandbox_1 = require("./sandbox")
const unsandbox_1 = require("./unsandbox")
/**
 * Companion helper to `sandbox`. Allows recovery, and partial recovery, from
 * errors and defects alike.
 */
function sandboxWith(f, __trace) {
  return (self) => unsandbox_1.unsandbox(f(sandbox_1.sandbox(self)), __trace)
}
exports.sandboxWith = sandboxWith
//# sourceMappingURL=sandboxWith.js.map
