Commit 3d623d8
n-api: improve consistency of how we get context
Refs: nodejs/node-addon-api#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: Michael Dawson <mdawson@devrus.com>
PR-URL: #36068
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent f9bbd35 commit 3d623d8Copy full SHA for 3d623d8
File tree
Expand file treeCollapse file tree
1 file changed
+2
-3
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+2
-3
lines changedOpen diff view settings
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
169 | 169 | |
170 | 170 | |
171 | 171 | |
172 | | - |
| 172 | + |
173 | 173 | |
174 | 174 | |
175 | 175 | |
| ||
385 | 385 | |
386 | 386 | |
387 | 387 | |
388 | | - |
389 | | - |
| 388 | + |
390 | 389 | |
391 | 390 | |
392 | 391 | |
|
0 commit comments