Commit 6d4ab36
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 7610fe5 commit 6d4ab36
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1777 | 1777 | | |
1778 | 1778 | | |
1779 | 1779 | | |
1780 | | - | |
1781 | | - | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1782 | 1790 | | |
1783 | 1791 | | |
1784 | 1792 | | |
| |||
1805 | 1813 | | |
1806 | 1814 | | |
1807 | 1815 | | |
1808 | | - | |
| 1816 | + | |
1809 | 1817 | | |
1810 | 1818 | | |
1811 | 1819 | | |
| |||
3714 | 3722 | | |
3715 | 3723 | | |
3716 | 3724 | | |
3717 | | - | |
3718 | | - | |
| 3725 | + | |
| 3726 | + | |
3719 | 3727 | | |
3720 | 3728 | | |
3721 | 3729 | | |
| |||
0 commit comments