Pluggable strategy for executing sandbox code. The default
mainThreadExecutor compiles and runs in the host realm. An alternative
executor, such as the iframe-worker one, can run the same code in a locked-down
realm off the main thread while honouring 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. The default mainThreadExecutor compiles and runs in the host realm. An alternative executor, such as the iframe-worker one, can run the same code in a locked-down realm off the main thread while honouring this exact contract.
runMUST resolve to{ value }or{ error }and never reject. Execution failures are reported as{ error }via formatSandboxExecutionError.