n-api: add more property defaults by Flarna · Pull Request #35214 · nodejs/node
Add a default value for class method and js like property in enum napi_property_attributes. n-api currently offers only one default which is non configurable, non writable, non enumerable - like Object.defineProperty(). While this is formal correct the usual way to create properties in JS is either by defining a class or use obj.prop = value. The defaults from these variants are now backed into enum values.
added
the
c++
label
Sep 15, 2020
Flarna
added
the
semver-minor
label
Sep 15, 2020This was referenced
Sep 16, 2020Flarna added a commit that referenced this pull request
Sep 17, 2020Add a default value for class method and js like property in enum napi_property_attributes. n-api currently offers only one default which is non configurable, non writable, non enumerable - like Object.defineProperty(). While this is formal correct the usual way to create properties in JS is either by defining a class or use obj.prop = value. The defaults from these variants are now backed into enum values. PR-URL: #35214 Refs: nodejs/node-addon-api#811 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
This was referenced
Jun 23, 2021This was referenced
Jul 1, 2021This was referenced
Jul 11, 2021This was referenced
Jul 23, 2021This was referenced
Jul 31, 2021This was referenced
Aug 11, 2021This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters