Skip to content
Commit Detail

Commit d8019c9

Author
James M Snell <jsnell@cloudflare.com> 2025-08-25 12:30:27 -0700
Parents
1e67563
Tree
6872c66
Add jsg::JsFunction

Scratching a long-time itch. Not to be confused with jsg::Function,
which is a type-safe wrapper around a JS function that passes
arguments and return values through the JSG type wrapper layer,
the JsFunction is a thin wrapper around a v8::Function that
aligns with jsg::JsValue and friends. This can be used to replace
direct uses of v8::Function to simplify calling functions and
handling the check(...) for error handling.

Files changed