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:
Anna Henningsen authored and James M Snell committed 2017-09-20 09:32:34 -07:00
1 parent 98967c988f
commit 606da2ba43
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -199,7 +199,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;
}
+1 -1
View File
@@ -439,7 +439,7 @@ class Environment {
AsyncCallbackScope() = delete;
explicit AsyncCallbackScope(Environment* env);
~AsyncCallbackScope();
inline bool in_makecallback();
inline bool in_makecallback() const;
private:
Environment* env_;