From 606da2ba430309d2dc73586c2926c97341dce342 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 8 Aug 2017 20:01:18 +0200 Subject: [PATCH] src: make in_makecallback() getter const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14697 Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- src/env-inl.h | 2 +- src/env.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env-inl.h b/src/env-inl.h index 8107311ba70ca6..b27c5ec47b02bc 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -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; } diff --git a/src/env.h b/src/env.h index fa4b289f314e16..96bbd3ce5c9db1 100644 --- a/src/env.h +++ b/src/env.h @@ -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_;