mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Make signal.abort() from native code fast (#13064)
This commit is contained in:
@@ -2844,13 +2844,13 @@ pub const VirtualMachine = struct {
|
||||
writer: Writer,
|
||||
current_exception_list: ?*ExceptionList = null,
|
||||
|
||||
pub fn iteratorWithColor(_vm: [*c]VM, globalObject: [*c]JSGlobalObject, ctx: ?*anyopaque, nextValue: JSValue) callconv(.C) void {
|
||||
pub fn iteratorWithColor(_vm: [*c]VM, globalObject: *JSGlobalObject, ctx: ?*anyopaque, nextValue: JSValue) callconv(.C) void {
|
||||
iterator(_vm, globalObject, nextValue, ctx.?, true);
|
||||
}
|
||||
pub fn iteratorWithOutColor(_vm: [*c]VM, globalObject: [*c]JSGlobalObject, ctx: ?*anyopaque, nextValue: JSValue) callconv(.C) void {
|
||||
pub fn iteratorWithOutColor(_vm: [*c]VM, globalObject: *JSGlobalObject, ctx: ?*anyopaque, nextValue: JSValue) callconv(.C) void {
|
||||
iterator(_vm, globalObject, nextValue, ctx.?, false);
|
||||
}
|
||||
inline fn iterator(_: [*c]VM, _: [*c]JSGlobalObject, nextValue: JSValue, ctx: ?*anyopaque, comptime color: bool) void {
|
||||
inline fn iterator(_: [*c]VM, _: *JSGlobalObject, nextValue: JSValue, ctx: ?*anyopaque, comptime color: bool) void {
|
||||
const this_ = @as(*@This(), @ptrFromInt(@intFromPtr(ctx)));
|
||||
VirtualMachine.get().printErrorlikeObject(nextValue, null, this_.current_exception_list, Writer, this_.writer, color, allow_side_effects);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user