Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4724e07

Browse filesBrowse files
isaacbrodskytargos
authored andcommitted
doc: indicate n-api out params that may be NULL
This is useful information to have for applications that don't need to read the other properties. The implementation checks for `nullptr`, see: https://github.com/nodejs/node/blob/master/src/js_native_api_v8.cc#L2879 PR-URL: #40371 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e2c9e1c commit 4724e07
Copy full SHA for 4724e07

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2821,6 +2821,8 @@ Returns `napi_ok` if the API succeeded.
28212821

28222822
This API returns various properties of a typed array.
28232823

2824+
Any of the out parameters may be `NULL` if that property is unneeded.
2825+
28242826
*Warning*: Use caution while using this API since the underlying data buffer
28252827
is managed by the VM.
28262828

@@ -2851,6 +2853,8 @@ napi_status napi_get_dataview_info(napi_env env,
28512853

28522854
Returns `napi_ok` if the API succeeded.
28532855

2856+
Any of the out parameters may be `NULL` if that property is unneeded.
2857+
28542858
This API returns various properties of a `DataView`.
28552859

28562860
#### napi_get_date_value

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.