Skip to content

Commit c158888

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 <[email protected]> PR-URL: #39104 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 171ca6b commit c158888

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: doc/api/n-api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3798,7 +3798,7 @@ typedef enum {
37983798
napi_default_method = napi_writable | napi_configurable,
37993799

38003800
// Default for object properties, like in JS obj[prop].
3801-
napi_default_property = napi_writable |
3801+
napi_default_jsproperty = napi_writable |
38023802
napi_enumerable |
38033803
napi_configurable,
38043804
} napi_property_attributes;
@@ -3821,8 +3821,8 @@ They can be one or more of the following bitflags:
38213821
[`napi_define_class`][]. It is ignored by `napi_define_properties`.
38223822
* `napi_default_method`: Like a method in a JS class, the property is
38233823
configurable and writeable, but not enumerable.
3824-
* `napi_default_property`: Like a property set via assignment in JavaScript, the
3825-
property is writable, enumerable, and configurable.
3824+
* `napi_default_jsproperty`: Like a property set via assignment in JavaScript,
3825+
the property is writable, enumerable, and configurable.
38263826

38273827
#### napi_property_descriptor
38283828

0 commit comments

Comments
 (0)