diff options
author | Rich Trott <rtrott@gmail.com> | 2020-09-18 12:27:44 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-09-20 17:34:41 +0300 |
commit | 62ff6912c3f8d364a616308fc2fbd301f6853a37 (patch) | |
tree | 47ee30e79bcdfd792f23d894068523b6f09a0494 /doc/api/n-api.md | |
parent | a8971f87d3573ac247110e6afde0dc475fe21264 (diff) |
doc: clarify napi_property_attributes text
* Rearrange sentence to avoid ambiguity whether the entire sentence
applies to a method in a JS class or just the "but not" part
* Use serial comma
* Correct spelling of _configurable_
PR-URL: https://github.com/nodejs/node/pull/35253
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r-- | doc/api/n-api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 80a2dba5f74..af20ddc1482 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -3792,10 +3792,10 @@ They can be one or more of the following bitflags: * `napi_static`: The property will be defined as a static property on a class as opposed to an instance property, which is the default. This is used only by [`napi_define_class`][]. It is ignored by `napi_define_properties`. -* `napi_default_method`: The property is configureable, writeable but not - enumerable like a method in a JS class. -* `napi_default_property`: The property is writable, enumerable and configurable - like a property set via JS code `obj.key = value`. +* `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_property_descriptor |