Skip to main content

Module testing

Module testing 

Source
Expand description

The JS runtime for tests: one per process, on one thread. JSC boots once per process, and JsRuntime is thread-affine, so a test that needs JS runs its body on one long-lived thread (on_js_thread). Bodies share that thread’s global object and thread-locals, so a test sets up what it reads; a panic in a body fails only that test.

Functions§

on_js_thread