Skip to content

Commit 606da2b

Browse files
addaleaxjasnell
authored andcommitted
src: make in_makecallback() getter const
PR-URL: #14697 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 98967c9 commit 606da2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/env-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ inline Environment::AsyncCallbackScope::~AsyncCallbackScope() {
199199
env_->makecallback_cntr_--;
200200
}
201201

202-
inline bool Environment::AsyncCallbackScope::in_makecallback() {
202+
inline bool Environment::AsyncCallbackScope::in_makecallback() const {
203203
return env_->makecallback_cntr_ > 1;
204204
}
205205

src/env.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class Environment {
439439
AsyncCallbackScope() = delete;
440440
explicit AsyncCallbackScope(Environment* env);
441441
~AsyncCallbackScope();
442-
inline bool in_makecallback();
442+
inline bool in_makecallback() const;
443443

444444
private:
445445
Environment* env_;

0 commit comments

Comments
 (0)