Skip to main content

Module null

Module null 

Source
Expand description

NullRuntime โ€” always-available stub backend.

Used when:

  • The Cargo feature xfa-js-sandboxed is not compiled in.
  • A caller selects JsExecutionMode::SandboxedRuntime but the build did not link a real backend.

Returning SandboxError::NotCompiledIn from every script call lets the dispatch site fall back to the existing best-effort skip path (js_skipped += 1, js_runtime_errors += 1) without changing pipeline behaviour.

Structsยง

NullRuntime
Stub runtime that refuses every script call.