Commit Detail
Commit d8019c9
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.