Update src/bun.js/api/Timer.zig

Co-authored-by: 190n <ben@bun.sh>
This commit is contained in:
Dylan Conway
2025-05-01 17:49:49 -07:00
committed by GitHub
parent 99d1077cfa
commit c3ff8fc7b5

View File

@@ -855,7 +855,7 @@ pub const TimerObjectInternals = struct {
extern "c" fn Bun__JSTimeout__call(globalObject: *JSC.JSGlobalObject, timer: JSValue, callback: JSValue, arguments: JSValue) bool;
// returns true if an exception was thrown
/// returns true if an exception was thrown
pub fn runImmediateTask(this: *TimerObjectInternals, vm: *VirtualMachine) bool {
if (this.flags.has_cleared_timer or
// unref'd setImmediate callbacks should only run if there are things keeping the event