diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-02 22:28:41 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-05 22:37:27 +0300 |
commit | a4123a86ef5e951d9f193d3ec331759b1b4fdee1 (patch) | |
tree | 7bfc18a9faf7cc14add90c27f2197f01e014f348 /doc/api/addons.md | |
parent | 7fc1d00204f33d3b1af0e865791fd4e38b1ab457 (diff) |
src: make AtExit() callbacks run in reverse order
This makes the actual behaviour match the documented (and arguably
the correct) behaviour.
PR-URL: https://github.com/nodejs/node/pull/30230
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'doc/api/addons.md')
-rw-r--r-- | doc/api/addons.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/addons.md b/doc/api/addons.md index cf2798c3a43..08475daa33a 100644 --- a/doc/api/addons.md +++ b/doc/api/addons.md @@ -1354,10 +1354,10 @@ static void sanity_check(void*) { } void init(Local<Object> exports) { + AtExit(sanity_check); AtExit(at_exit_cb2, cookie); AtExit(at_exit_cb2, cookie); AtExit(at_exit_cb1, exports->GetIsolate()); - AtExit(sanity_check); } NODE_MODULE(NODE_GYP_MODULE_NAME, init) |