Pluggable strategy for executing sandbox code, chosen by environment: in a browser
the default runs the code in a locked-down iframe worker, off the main thread, and
without a DOM it runs in the host realm. Every executor honours this exact contract.
run MUST resolve to { value } or { error } and never reject. Execution
failures are reported as { error } via formatSandboxExecutionError.
Pluggable strategy for executing sandbox code, chosen by environment: in a browser the default runs the code in a locked-down iframe worker, off the main thread, and without a DOM it runs in the host realm. Every executor honours this exact contract.
runMUST resolve to{ value }or{ error }and never reject. Execution failures are reported as{ error }via formatSandboxExecutionError.