Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v6.x backport] src: add environment cleanup hooks #22633

Commits on Mar 15, 2019

  1. 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: ayojs/ayo#82
    PR-URL: nodejs#19377
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and Gabriel Schulhof committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    668ba1a View commit details
    Browse the repository at this point in the history
  2. squash! use <set> on OSX

    Gabriel Schulhof committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    54c268e View commit details
    Browse the repository at this point in the history