summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-08-02 01:07:57 +0200
committerJames M Snell <jasnell@gmail.com>2018-08-12 10:03:43 -0700
commit45d0b4a300cbc845727fee75c59427cc343b1559 (patch)
tree786149e23904e6b4d41bce9e4d787642eec51260 /src/node_internals.h
parent801c490033d5a16c0995bb131398689407a74231 (diff)
downloadandroid-node-v8-45d0b4a300cbc845727fee75c59427cc343b1559.tar.gz
android-node-v8-45d0b4a300cbc845727fee75c59427cc343b1559.tar.bz2
android-node-v8-45d0b4a300cbc845727fee75c59427cc343b1559.zip
src: yield empty maybes for failed AsyncWrap::MakeCallback calls
Use an empty `MaybeLocal<Value>` as the return value for `AsyncWrap::MakeCallback()` if an exception occurred, regardless of `MakeCallback` depth. Unfortunately, the public API can not make this switch without a breaking change (and possibly some kind of deprecation/renaming). PR-URL: https://github.com/nodejs/node/pull/22078 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 0594d00580..968d229f10 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -543,9 +543,6 @@ class InternalCallbackScope {
inline bool Failed() const { return failed_; }
inline void MarkAsFailed() { failed_ = true; }
- inline bool IsInnerMakeCallback() const {
- return callback_scope_.in_makecallback();
- }
private:
Environment* env_;