We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fee5b2 commit dc38dd2Copy full SHA for dc38dd2
lib/internal/timers.js
@@ -79,6 +79,7 @@ const {
79
NumberMIN_SAFE_INTEGER,
80
ObjectCreate,
81
Symbol,
82
+ ReflectApply,
83
} = primordials;
84
85
const {
@@ -555,7 +556,7 @@ function getTimerCallbacks(runNextTicks) {
555
556
if (args === undefined)
557
timer._onTimeout();
558
else
- timer._onTimeout(...args);
559
+ ReflectApply(timer._onTimeout, timer, args);
560
} finally {
561
if (timer._repeat && timer._idleTimeout !== -1) {
562
timer._idleTimeout = timer._repeat;
0 commit comments