Commit d70fd7d
n-api: define ECMAScript-compliant accessors on napi_define_properties
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 edb1a3c commit d70fd7dCopy full SHA for d70fd7d
File tree
Expand file treeCollapse file tree
2 files changed
+64
-22
lines changedOpen diff view settings
Filter options
- src
- test/js-native-api/test_properties
Expand file treeCollapse file tree
2 files changed
+64
-22
lines changedOpen diff view settings
Collapse file
+50-20Lines changed: 50 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1178 | 1178 | |
1179 | 1179 | |
1180 | 1180 | |
1181 | | - |
1182 | | - |
1183 | | - |
1184 | 1181 | |
1185 | | - |
1186 | | - |
1187 | | - |
1188 | | - |
1189 | | - |
| 1182 | + |
| 1183 | + |
1190 | 1184 | |
1191 | | - |
1192 | | - |
1193 | | - |
1194 | | - |
1195 | | - |
1196 | | - |
1197 | | - |
1198 | | - |
| 1185 | + |
| 1186 | + |
| 1187 | + |
| 1188 | + |
| 1189 | + |
| 1190 | + |
| 1191 | + |
| 1192 | + |
| 1193 | + |
| 1194 | + |
| 1195 | + |
| 1196 | + |
| 1197 | + |
| 1198 | + |
| 1199 | + |
| 1200 | + |
| 1201 | + |
| 1202 | + |
| 1203 | + |
| 1204 | + |
| 1205 | + |
| 1206 | + |
| 1207 | + |
| 1208 | + |
| 1209 | + |
1199 | 1210 | |
1200 | | - |
| 1211 | + |
| 1212 | + |
| 1213 | + |
| 1214 | + |
| 1215 | + |
| 1216 | + |
| 1217 | + |
| 1218 | + |
| 1219 | + |
1201 | 1220 | |
1202 | 1221 | |
1203 | 1222 | |
| ||
1213 | 1232 | |
1214 | 1233 | |
1215 | 1234 | |
1216 | | - |
1217 | | - |
| 1235 | + |
| 1236 | + |
| 1237 | + |
| 1238 | + |
| 1239 | + |
| 1240 | + |
| 1241 | + |
| 1242 | + |
1218 | 1243 | |
1219 | 1244 | |
1220 | 1245 | |
1221 | 1246 | |
1222 | 1247 | |
1223 | 1248 | |
1224 | 1249 | |
| 1250 | + |
| 1251 | + |
| 1252 | + |
| 1253 | + |
| 1254 | + |
1225 | 1255 | |
1226 | | - |
| 1256 | + |
1227 | 1257 | |
1228 | 1258 | |
1229 | 1259 | |
|
Collapse file
test/js-native-api/test_properties/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_properties/test.js+14-2Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
| 7 | + |
6 | 8 | |
7 | 9 | |
8 | 10 | |
| ||
41 | 43 | |
42 | 44 | |
43 | 45 | |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
44 | 56 | |
45 | 57 | |
46 | 58 | |
47 | | - |
| 59 | + |
48 | 60 | |
49 | 61 | |
50 | 62 | |
51 | | - |
| 63 | + |
52 | 64 | |
53 | 65 | |
54 | 66 | |
|
0 commit comments