Skip to content

Commit 1908668

Browse files
Gabriel SchulhofMylesBorins
Gabriel Schulhof
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 <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 7ac491b commit 1908668

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/n-api.md

+3
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)