diff options
author | Davidson Francis <davidsondfgl@gmail.com> | 2021-06-21 06:11:48 +0300 |
---|---|---|
committer | legendecas <legendecas@gmail.com> | 2021-06-24 18:33:57 +0300 |
commit | 11430a6de36b6511134b33d8a2dc23a7fd750b70 (patch) | |
tree | ae67f1417e9350e5d2859eeede4a1b21508dcb56 /doc/api/n-api.md | |
parent | 84d6ce9fd15a20c0d0c8c23e9b6c0d1b25b8325f (diff) |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r-- | doc/api/n-api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index dca306b83cd..6115bc14674 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -3798,7 +3798,7 @@ typedef enum { napi_default_method = napi_writable | napi_configurable, // Default for object properties, like in JS obj[prop]. - napi_default_property = napi_writable | + napi_default_jsproperty = napi_writable | napi_enumerable | napi_configurable, } napi_property_attributes; @@ -3821,8 +3821,8 @@ They can be one or more of the following bitflags: [`napi_define_class`][]. It is ignored by `napi_define_properties`. * `napi_default_method`: Like a method in a JS class, the property is configurable and writeable, but not enumerable. -* `napi_default_property`: Like a property set via assignment in JavaScript, the - property is writable, enumerable, and configurable. +* `napi_default_jsproperty`: Like a property set via assignment in JavaScript, + the property is writable, enumerable, and configurable. #### napi_property_descriptor |