Commit 0a847ca
doc: update napi_make_callback documentation
Calling napi_make_callback() with no async_context is not resulting in
using the current async context instead an empty context (id 0) is
used.
Using NULL is like using node::Makecallback without async_context which
is deprecated since Node.js 10 (DEP0099).
PR-URL: #35321
Fixes: #35188
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>1 parent a8d3a7f commit 0a847ca
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5176 | 5176 | | |
5177 | 5177 | | |
5178 | 5178 | | |
5179 | | - | |
5180 | | - | |
5181 | | - | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
5182 | 5184 | | |
5183 | 5185 | | |
5184 | 5186 | | |
| |||
0 commit comments