mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
zig: prefer .jsUndefined() over .undefined for JSValue (#20332)
This commit is contained in:
@@ -1686,7 +1686,7 @@ pub const main_file_name: string = "bun:main";
|
||||
pub export fn Bun__drainMicrotasksFromJS(globalObject: *JSGlobalObject, callframe: *JSC.CallFrame) callconv(JSC.conv) JSValue {
|
||||
_ = callframe; // autofix
|
||||
globalObject.bunVM().drainMicrotasks();
|
||||
return .undefined;
|
||||
return .jsUndefined();
|
||||
}
|
||||
|
||||
pub fn drainMicrotasks(this: *VirtualMachine) void {
|
||||
@@ -2345,7 +2345,7 @@ fn printErrorFromMaybePrivateData(
|
||||
pub fn reportUncaughtException(globalObject: *JSGlobalObject, exception: *Exception) JSValue {
|
||||
var jsc_vm = globalObject.bunVM();
|
||||
_ = jsc_vm.uncaughtException(globalObject, exception.value(), false);
|
||||
return .undefined;
|
||||
return .jsUndefined();
|
||||
}
|
||||
|
||||
pub fn printStackTrace(comptime Writer: type, writer: Writer, trace: ZigStackTrace, comptime allow_ansi_colors: bool) !void {
|
||||
|
||||
Reference in New Issue
Block a user