| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Update n-api samples to create object properties matching to the JS defaults. Using non configurable, non writable properties has its usecases but the JS default for class methods is `configurable` and `writable`. Js properties set by JS code `obj.prop = val` are `configurable`, `writable` and `enumerable`.
|
Review requested:
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, thanks for contributing this!
Sorry, something went wrong.
Update n-api samples to create object properties matching to the JS defaults. Using non configurable, non writable properties has its usecases but the JS default for class methods is `configurable` and `writable`. Js properties set by JS code `obj.prop = val` are `configurable`, `writable` and `enumerable`.
Update n-api samples to create object properties matching to the JS defaults. Using non configurable, non writable properties has its usecases but the JS default for class methods is `configurable` and `writable`. Js properties set by JS code `obj.prop = val` are `configurable`, `writable` and `enumerable`.
Update n-api samples to create object properties matching to the JS defaults. Using non configurable, non writable properties has its usecases but the JS default for class methods is `configurable` and `writable`. Js properties set by JS code `obj.prop = val` are `configurable`, `writable` and `enumerable`.
| Back | FazBrowse Home | New Git URL |
Update n-api samples to create object properties matching to the JS defaults.
Using non configurable, non writable properties has its usecases but the JS default for class methods is configurable and writable. Js properties set by JS code obj.prop = val are configurable, writable and enumerable.
Refs: nodejs/node-addon-api#811
Refs: #35214