GeezerVison is showing github.com — doc: clarify napi_property_attributes text · nodejs/node@2bc335d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/n-api.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3789,10 +3789,10 @@ They can be one or more of the following bitflags: |
3789 | 3789 | * `napi_static`: The property will be defined as a static property on a class as |
3790 | 3790 | opposed to an instance property, which is the default. This is used only by |
3791 | 3791 | [`napi_define_class`][]. It is ignored by `napi_define_properties`. |
3792 | | -* `napi_default_method`: The property is configureable, writeable but not |
3793 | | - enumerable like a method in a JS class. |
3794 | | -* `napi_default_property`: The property is writable, enumerable and configurable |
3795 | | - like a property set via JS code `obj.key = value`. |
| 3792 | +* `napi_default_method`: Like a method in a JS class, the property is |
| 3793 | + configurable and writeable, but not enumerable. |
| 3794 | +* `napi_default_property`: Like a property set via assignment in JavaScript, the |
| 3795 | + property is writable, enumerable, and configurable. |
3796 | 3796 |
|
3797 | 3797 | #### napi_property_descriptor |
3798 | 3798 |
|
|