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

[v10.x] n-api: finalize during second-pass callback #26058

Commits on Mar 4, 2019

  1. n-api: finalize during second-pass callback

    Calling into the engine from a weak callback is unsafe, however, the
    engine offers a way to attach a second-pass weak callback which gets
    called when it is safe to call into JavaScript. This moves the point
    at which the N-API finalize callback gets called to this latter point.
    
    Fixes: nodejs#25927
    PR-URL: nodejs#25992
    Backport-PR-URL: nodejs#26058
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
    Gabriel Schulhof committed Mar 4, 2019
    Configuration menu
    Copy the full SHA
    e66b09c View commit details
    Browse the repository at this point in the history