Commit 83fc10d
n-api: define ECMAScript-compliant accessors on napi_define_class
PR-URL: #27851
Fixes: #26551
Fixes: nodejs/node-addon-api#485
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent d70fd7d commit 83fc10dCopy full SHA for 83fc10d
File tree
Expand file treeCollapse file tree
4 files changed
+67
-38
lines changedOpen diff view settings
Filter options
- src
- test/js-native-api
- 6_object_wrap
- test_constructor
Expand file treeCollapse file tree
4 files changed
+67
-38
lines changedOpen diff view settings
Collapse file
+28-33Lines changed: 28 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
88 | 86 | |
89 | 87 | |
90 | 88 | |
| ||
598 | 596 | |
599 | 597 | |
600 | 598 | |
601 | | - |
602 | | - |
603 | | - |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | | - |
611 | | - |
612 | | - |
613 | | - |
614 | | - |
615 | | - |
616 | | - |
617 | | - |
618 | | - |
619 | 599 | |
620 | 600 | |
621 | 601 | |
| ||
812 | 792 | |
813 | 793 | |
814 | 794 | |
815 | | - |
| 795 | + |
| 796 | + |
| 797 | + |
816 | 798 | |
817 | | - |
818 | | - |
| 799 | + |
| 800 | + |
| 801 | + |
| 802 | + |
| 803 | + |
| 804 | + |
| 805 | + |
| 806 | + |
| 807 | + |
| 808 | + |
| 809 | + |
| 810 | + |
| 811 | + |
| 812 | + |
| 813 | + |
| 814 | + |
819 | 815 | |
820 | | - |
| 816 | + |
821 | 817 | |
822 | | - |
823 | | - |
824 | | - |
825 | | - |
826 | | - |
| 818 | + |
| 819 | + |
| 820 | + |
| 821 | + |
827 | 822 | |
828 | 823 | |
829 | 824 | |
|
Collapse file
test/js-native-api/6_object_wrap/myobject.cc
Copy file name to clipboardExpand all lines: test/js-native-api/6_object_wrap/myobject.cc+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
| 21 | + |
20 | 22 | |
21 | 23 | |
22 | 24 | |
23 | 25 | |
24 | 26 | |
25 | 27 | |
26 | | - |
| 28 | + |
| 29 | + |
| 30 | + |
27 | 31 | |
28 | 32 | |
29 | 33 | |
|
Collapse file
test/js-native-api/6_object_wrap/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/6_object_wrap/test.js+29Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
6 | 32 | |
7 | 33 | |
8 | 34 | |
9 | 35 | |
| 36 | + |
| 37 | + |
10 | 38 | |
11 | 39 | |
12 | 40 | |
| ||
16 | 44 | |
17 | 45 | |
18 | 46 | |
| 47 | + |
19 | 48 | |
Collapse file
test/js-native-api/test_constructor/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_constructor/test.js+5-4Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
| 6 | + |
| 7 | + |
5 | 8 | |
6 | 9 | |
7 | 10 | |
| ||
36 | 39 | |
37 | 40 | |
38 | 41 | |
39 | | - |
40 | | - |
| 42 | + |
41 | 43 | |
42 | 44 | |
43 | 45 | |
44 | | - |
45 | | - |
| 46 | + |
46 | 47 | |
47 | 48 | |
48 | 49 | |
|
0 commit comments