Skip to main content

Module throw

Module throw 

Source
Expand description

Synchronous toThrow matcher (Jest’s expect(fn).toThrow(...)).

The QuickJS binding invokes the user function in try/catch and constructs the ThrownError (or None) before delegating here — this module does not own any JS invocation, only the matching logic.

Structs§

ExpectFn
ThrownError
Captured outcome of invoking a function expected to throw.

Enums§

ThrowMatcher

Functions§

expect_fn