summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-09-09 22:28:02 +0200
committerAnna Henningsen <anna@addaleax.net>2018-05-10 14:15:16 +0200
commit5c6cf30143f3191b043ba0b4e814768efa1069f7 (patch)
tree630c9aed6f50ee77ebdca48293d16155b36c0d86 /src/tty_wrap.cc
parent560925fe22bfc23860b04704ff4cae21e4dd19ff (diff)
downloadandroid-node-v8-5c6cf30143f3191b043ba0b4e814768efa1069f7.tar.gz
android-node-v8-5c6cf30143f3191b043ba0b4e814768efa1069f7.tar.bz2
android-node-v8-5c6cf30143f3191b043ba0b4e814768efa1069f7.zip
src: add environment cleanup hooks
This adds pairs of methods to the `Environment` class and to public APIs which can add and remove cleanup handlers. Unlike `AtExit`, this API targets addon developers rather than embedders, giving them (and Node’s internals) the ability to register per-`Environment` cleanup work. We may want to replace `AtExit` with this API at some point. Many thanks for Stephen Belanger for reviewing the original version of this commit in the Ayo.js project. Refs: https://github.com/ayojs/ayo/pull/82 PR-URL: https://github.com/nodejs/node/pull/19377 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/tty_wrap.cc')
0 files changed, 0 insertions, 0 deletions