Commit cbfa2d11 authored by Michael Dawson's avatar Michael Dawson
Browse files

n-api: improve consistency of how we get context

Refs: https://github.com/nodejs/node-addon-api/issues/764


Improve the consistency of how we get a context
when needed. We generally used env->context() in N-API
but there were are few exceptions that this PR addresses.

Signed-off-by: default avatarMichael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/36068


Reviewed-By: default avatarJuan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: default avatarGabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarChengzhong Wu <legendecas@gmail.com>
parent 8d6b74d3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment