Commit 89636e3
doc: update attributes used by n-api samples (#35220)
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`.1 parent e21d1cd commit 89636e3Copy full SHA for 89636e3
File tree
Expand file treeCollapse file tree
1 file changed
+13
-5
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+13
-5
lines changedOpen diff view settings
Collapse file
+13-5Lines changed: 13 additions & 5 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1642 | 1642 | |
1643 | 1643 | |
1644 | 1644 | |
1645 | | - |
1646 | | - |
| 1645 | + |
| 1646 | + |
| 1647 | + |
| 1648 | + |
| 1649 | + |
| 1650 | + |
| 1651 | + |
| 1652 | + |
| 1653 | + |
| 1654 | + |
1647 | 1655 | |
1648 | 1656 | |
1649 | 1657 | |
| ||
1670 | 1678 | |
1671 | 1679 | |
1672 | 1680 | |
1673 | | - |
| 1681 | + |
1674 | 1682 | |
1675 | 1683 | |
1676 | 1684 | |
| ||
3563 | 3571 | |
3564 | 3572 | |
3565 | 3573 | |
3566 | | - |
3567 | | - |
| 3574 | + |
| 3575 | + |
3568 | 3576 | |
3569 | 3577 | |
3570 | 3578 | |
|
0 commit comments