mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
allow zig js host functions to return JSError (#15120)
This commit is contained in:
@@ -2297,7 +2297,7 @@ pub const bindings = struct {
|
||||
// return obj;
|
||||
// }
|
||||
|
||||
pub fn jsReadTarball(global: *JSGlobalObject, callFrame: *CallFrame) JSValue {
|
||||
pub fn jsReadTarball(global: *JSGlobalObject, callFrame: *CallFrame) bun.JSError!JSValue {
|
||||
const args = callFrame.arguments(1).slice();
|
||||
if (args.len < 1 or !args[0].isString()) {
|
||||
global.throw("expected tarball path string argument", .{});
|
||||
|
||||
Reference in New Issue
Block a user