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 1908668

Browse filesBrowse files
Gabriel SchulhofMylesBorins
authored andcommitted
n-api: document the look of napi_external values
Describe what JavaScript values of type `napi_external` look like in JavaScript. Fixes: nodejs/abi-stable-node#306 PR-URL: #20426 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent 7ac491b commit 1908668
Copy full SHA for 1908668

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-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
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,9 @@ the ECMAScript Language Specification.
10511051
In addition to types in that section, `napi_valuetype` can also represent
10521052
`Function`s and `Object`s with external data.
10531053

1054+
A JavaScript value of type `napi_external` appears in JavaScript as a plain
1055+
object such that no properties can be set on it, and no prototype.
1056+
10541057
#### napi_typedarray_type
10551058
```C
10561059
typedef enum {

0 commit comments

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