Skip to content

Commit d069c72

Browse files
Theldustargos
authored andcommitted
doc: fix napi_default_property name
Fix the napi_default_jsproperty flag of the napi_property_attributes enum that was incorrectly referred to as napi_default_property. Signed-off-by: Davidson Francis <davidsondfgl@gmail.com> PR-URL: #39104 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
1 parent 8d84154 commit d069c72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/n-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,7 +3763,7 @@ typedef enum {
37633763
napi_default_method = napi_writable | napi_configurable,
37643764

37653765
// Default for object properties, like in JS obj[prop].
3766-
napi_default_property = napi_writable |
3766+
napi_default_jsproperty = napi_writable |
37673767
napi_enumerable |
37683768
napi_configurable,
37693769
} napi_property_attributes;
@@ -3786,8 +3786,8 @@ They can be one or more of the following bitflags:
37863786
[`napi_define_class`][]. It is ignored by `napi_define_properties`.
37873787
* `napi_default_method`: Like a method in a JS class, the property is
37883788
configurable and writeable, but not enumerable.
3789-
* `napi_default_property`: Like a property set via assignment in JavaScript, the
3790-
property is writable, enumerable, and configurable.
3789+
* `napi_default_jsproperty`: Like a property set via assignment in JavaScript,
3790+
the property is writable, enumerable, and configurable.
37913791

37923792
#### napi_property_descriptor
37933793

0 commit comments

Comments
 (0)