Skip to content

Commit

Permalink
fixup! fixup! fixup! timers: use V8 fast API calls
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
joyeecheung and VoltrexKeyva authored Feb 10, 2023
1 parent 3ac7f2f commit 6621a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/internal/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/timers.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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_

0 comments on commit 6621a78

Please sign in to comment.