import { sandbox } from "./sandbox"
import { unsandbox } from "./unsandbox"
/**
 * Companion helper to `sandbox`. Allows recovery, and partial recovery, from
 * errors and defects alike.
 */

export function sandboxWith(f, __trace) {
  return (self) => unsandbox(f(sandbox(self)), __trace)
}
//# sourceMappingURL=sandboxWith.js.map
