diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-11-02 20:28:41 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-05 20:37:27 +0100 |
commit | a4123a86ef5e951d9f193d3ec331759b1b4fdee1 (patch) | |
tree | 7bfc18a9faf7cc14add90c27f2197f01e014f348 /doc | |
parent | 7fc1d00204f33d3b1af0e865791fd4e38b1ab457 (diff) | |
download | android-node-v8-a4123a86ef5e951d9f193d3ec331759b1b4fdee1.tar.gz android-node-v8-a4123a86ef5e951d9f193d3ec331759b1b4fdee1.tar.bz2 android-node-v8-a4123a86ef5e951d9f193d3ec331759b1b4fdee1.zip |
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')
-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 cf2798c3a4..08475daa33 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) |