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

n-api: add APIs for per-instance state management #28682

Closed

Commits on Jul 17, 2019

  1. n-api: add APIs for per-instance state management

    Adds `napi_set_instance_data()` and `napi_get_instance_data()`, which
    allow native addons to store their data on and retrieve their data from
    `napi_env`. `napi_set_instance_data()` accepts a finalizer which is
    called when the `node::Environment()` is destroyed.
    
    This entails rendering the `napi_env` local.
    
    Fixes: nodejs/abi-stable-node#378
    Gabriel Schulhof committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    4dbca04 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. further explain the correspondence between the ECMAScript Agent and t…

    …he Node.js environment
    Gabriel Schulhof committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    d408e46 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2019

  1. update test to run both in a main thread and a worker thread

    Gabriel Schulhof committed Jul 21, 2019
    Configuration menu
    Copy the full SHA
    b09abc0 View commit details
    Browse the repository at this point in the history