n-api: re-use napi_env between modules
Store the `napi_env` on the global object at a private key. This gives us one `napi_env` per context. Refs: https://github.com/nodejs/node/issues/14367 Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/14217 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Timothy Gu <timothygu99@gmail.com>
parent
06b12734
Please register or sign in to comment