FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: update attributes used by n-api samples by Flarna · Pull Request #35220 · nodejs/node · GitHub

/ node Public

doc: update attributes used by n-api samples - #35220

Merged
mhdawson merged 1 commit into
nodejs:masterfrom
dynatrace-oss-contrib:napi-improve-samples
Sep 18, 2020
Merged

doc: update attributes used by n-api samples#35220
mhdawson merged 1 commit into
nodejs:masterfrom
dynatrace-oss-contrib:napi-improve-samples

Conversation

Flarna commented Sep 16, 2020

Copy link
Copy Markdown
Member

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

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`.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/n-api

nodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels Sep 16, 2020

mhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, thanks for contributing this!

mhdawson merged commit a63b90e into nodejs:master Sep 18, 2020
Flarna deleted the napi-improve-samples branch September 18, 2020 20:33
ruyadorno pushed a commit that referenced this pull request Sep 21, 2020
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`.
ruyadorno mentioned this pull request Sep 21, 2020
4 tasks
addaleax pushed a commit that referenced this pull request Sep 22, 2020
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`.
codebytere mentioned this pull request Sep 28, 2020
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
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`.
This 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL