use .undefined literal instead of jsUndefined() call (#12834)

This commit is contained in:
Meghan Denny
2024-07-26 04:03:55 -07:00
committed by GitHub
parent d966129992
commit f7cb2da542
23 changed files with 119 additions and 119 deletions

View File

@@ -4362,7 +4362,7 @@ pub const TestingAPIs = struct {
var arguments = JSC.Node.ArgumentsSlice.init(globalThis.bunVM(), arguments_.slice());
const string = arguments.nextEat() orelse {
globalThis.throw("shellInternals.disabledOnPosix: expected 1 arguments, got 0", .{});
return JSC.JSValue.jsUndefined();
return .undefined;
};
const bunstr = string.toBunString(globalThis);
@@ -4386,7 +4386,7 @@ pub const TestingAPIs = struct {
var arguments = JSC.Node.ArgumentsSlice.init(globalThis.bunVM(), arguments_.slice());
const string_args = arguments.nextEat() orelse {
globalThis.throw("shell_parse: expected 2 arguments, got 0", .{});
return JSC.JSValue.jsUndefined();
return .undefined;
};
var arena = std.heap.ArenaAllocator.init(bun.default_allocator);
@@ -4476,7 +4476,7 @@ pub const TestingAPIs = struct {
var arguments = JSC.Node.ArgumentsSlice.init(globalThis.bunVM(), arguments_.slice());
const string_args = arguments.nextEat() orelse {
globalThis.throw("shell_parse: expected 2 arguments, got 0", .{});
return JSC.JSValue.jsUndefined();
return .undefined;
};
var arena = bun.ArenaAllocator.init(bun.default_allocator);