From 6621a7823fe5655755d8b2a69738258ab5f64bdf Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 10 Feb 2023 16:44:45 +0100 Subject: [PATCH] fixup! fixup! fixup! timers: use V8 fast API calls Co-authored-by: Mohammed Keyvanzadeh --- lib/internal/timers.js | 2 +- src/timers.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/internal/timers.js b/lib/internal/timers.js index 9f20d07ed0b92c..828f405aa93c21 100644 --- a/lib/internal/timers.js +++ b/lib/internal/timers.js @@ -634,7 +634,7 @@ class Immediate { this[kRefed] = true; if (immediateInfo[kRefCount]++ === 0) { - // We need to use the binding as the receiver for fast API calls. + // We need to use the binding as the receiver for fast API calls. binding.toggleImmediateRef(true); } } diff --git a/src/timers.h b/src/timers.h index d210dd5f230251..6821eec70f6974 100644 --- a/src/timers.h +++ b/src/timers.h @@ -1,5 +1,5 @@ -#ifndef SRC_NODE_TIMERS_H_ -#define SRC_NODE_TIMERS_H_ +#ifndef SRC_TIMERS_H_ +#define SRC_TIMERS_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS @@ -67,4 +67,4 @@ class BindingData : public SnapshotableObject { #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS -#endif // SRC_NODE_TIMERS_H_ +#endif // SRC_TIMERS_H_