From 62ff6912c3f8d364a616308fc2fbd301f6853a37 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Reviewed-By: Michael Dawson Reviewed-By: Gerhard Stöbich Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- 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 80a2dba5f743e3..af20ddc1482707 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