Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file-inl.h')
-rw-r--r--src/node_file-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file-inl.h b/src/node_file-inl.h
index 28d4d9ab8c8..351f3df809d 100644
--- a/src/node_file-inl.h
+++ b/src/node_file-inl.h
@@ -159,7 +159,7 @@ FSReqPromise<AliasedBufferT>::~FSReqPromise() {
// Validate that the promise was explicitly resolved or rejected but only if
// the Isolate is not terminating because in this case the promise might have
// not finished.
- if (!env()->is_stopping()) CHECK(finished_);
+ CHECK_IMPLIES(!finished_, !env()->can_call_into_js());
}
template <typename AliasedBufferT>