From f54dfbb9943393ed7b6dbcf20cb209fd22aa86d9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 18 Sep 2020 02:27:44 -0700 Subject: [PATCH] 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_ --- doc/api/n-api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 22fe991142f850..37bd61559bc986 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -3774,10 +3774,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