src: make in_makecallback() getter const
PR-URL: https://github.com/nodejs/node/pull/14697 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
290315ace7
commit
be6d807bbf
@ -223,7 +223,7 @@ inline Environment::AsyncCallbackScope::~AsyncCallbackScope() {
|
||||
env_->makecallback_cntr_--;
|
||||
}
|
||||
|
||||
inline bool Environment::AsyncCallbackScope::in_makecallback() {
|
||||
inline bool Environment::AsyncCallbackScope::in_makecallback() const {
|
||||
return env_->makecallback_cntr_ > 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user