Commit 0bb5584
src: add receiver to fast api callback methods
When creating an fast api the callback might use the receiver. In that
case if the internal binding is destructured the method won't have
access to the reciver and it will throw. Passing the receiver as second
argument ensures the receiver is available.
PR-URL: #54408
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 7186ede commit 0bb5584Copy full SHA for 0bb5584
File tree
Expand file treeCollapse file tree
18 files changed
+123
-53
lines changedOpen diff view settings
Filter options
- doc
- api
- contributing
- lib
- internal
- fs
- modules
- cjs
- esm
- src
- test/parallel
- typings/internalBinding
Expand file treeCollapse file tree
18 files changed
+123
-53
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
220 | 220 | |
221 | 221 | |
222 | 222 | |
223 | | - |
| 223 | + |
224 | 224 | |
225 | 225 | |
226 | 226 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
|
Collapse file
doc/contributing/adding-v8-fast-api.md
Copy file name to clipboardExpand all lines: doc/contributing/adding-v8-fast-api.md+18-1Lines changed: 18 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
41 | 58 | |
42 | 59 | |
43 | 60 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1414 | 1414 | |
1415 | 1415 | |
1416 | 1416 | |
1417 | | - |
| 1417 | + |
1418 | 1418 | |
1419 | 1419 | |
1420 | 1420 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
914 | 914 | |
915 | 915 | |
916 | 916 | |
917 | | - |
| 917 | + |
918 | 918 | |
919 | 919 | |
920 | 920 | |
|
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
235 | 235 | |
236 | 236 | |
237 | 237 | |
238 | | - |
| 238 | + |
239 | 239 | |
240 | | - |
| 240 | + |
241 | 241 | |
242 | 242 | |
243 | 243 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
241 | 241 | |
242 | 242 | |
243 | 243 | |
244 | | - |
245 | | - |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
246 | 248 | |
247 | 249 | |
248 | 250 | |
| ||
802 | 804 | |
803 | 805 | |
804 | 806 | |
| 807 | + |
805 | 808 | |
806 | 809 | |
807 | 810 | |
|
Collapse file
+19-12Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
169 | 169 | |
170 | 170 | |
171 | 171 | |
172 | | - |
| 172 | + |
| 173 | + |
173 | 174 | |
174 | 175 | |
175 | 176 | |
| ||
189 | 190 | |
190 | 191 | |
191 | 192 | |
192 | | - |
| 193 | + |
| 194 | + |
193 | 195 | |
194 | 196 | |
195 | 197 | |
| ||
436 | 438 | |
437 | 439 | |
438 | 440 | |
439 | | - |
| 441 | + |
| 442 | + |
| 443 | + |
440 | 444 | |
441 | 445 | |
442 | 446 | |
| ||
448 | 452 | |
449 | 453 | |
450 | 454 | |
451 | | - |
| 455 | + |
452 | 456 | |
453 | 457 | |
454 | 458 | |
| ||
564 | 568 | |
565 | 569 | |
566 | 570 | |
567 | | - |
| 571 | + |
568 | 572 | |
569 | 573 | |
570 | 574 | |
571 | 575 | |
572 | | - |
| 576 | + |
573 | 577 | |
574 | 578 | |
575 | 579 | |
576 | 580 | |
577 | | - |
| 581 | + |
578 | 582 | |
579 | 583 | |
580 | 584 | |
581 | 585 | |
582 | | - |
| 586 | + |
583 | 587 | |
584 | 588 | |
585 | 589 | |
586 | 590 | |
587 | | - |
| 591 | + |
588 | 592 | |
589 | 593 | |
590 | 594 | |
591 | 595 | |
592 | | - |
| 596 | + |
| 597 | + |
593 | 598 | |
594 | 599 | |
595 | 600 | |
596 | 601 | |
597 | | - |
| 602 | + |
| 603 | + |
598 | 604 | |
599 | 605 | |
600 | 606 | |
601 | 607 | |
602 | | - |
| 608 | + |
| 609 | + |
603 | 610 | |
604 | 611 | |
605 | 612 | |
|
Collapse file
+24-11Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
112 | 120 | |
113 | 121 | |
114 | 122 | |
| ||
158 | 166 | |
159 | 167 | |
160 | 168 | |
| 169 | + |
161 | 170 | |
162 | 171 | |
163 | 172 | |
164 | | - |
| 173 | + |
| 174 | + |
165 | 175 | |
166 | 176 | |
167 | 177 | |
| ||
233 | 243 | |
234 | 244 | |
235 | 245 | |
236 | | - |
237 | | - |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
238 | 251 | |
239 | 252 | |
240 | 253 | |
|
Collapse file
src/node_external_reference.h
Copy file name to clipboardExpand all lines: src/node_external_reference.h+17-6Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
| 16 | + |
16 | 17 | |
17 | | - |
| 18 | + |
18 | 19 | |
19 | | - |
| 20 | + |
| 21 | + |
20 | 22 | |
21 | 23 | |
22 | 24 | |
23 | 25 | |
24 | 26 | |
25 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
26 | 31 | |
27 | | - |
| 32 | + |
| 33 | + |
28 | 34 | |
29 | 35 | |
30 | 36 | |
| ||
50 | 56 | |
51 | 57 | |
52 | 58 | |
| 59 | + |
53 | 60 | |
54 | 61 | |
| 62 | + |
55 | 63 | |
56 | 64 | |
57 | | - |
| 65 | + |
| 66 | + |
| 67 | + |
58 | 68 | |
59 | 69 | |
60 | 70 | |
| ||
83 | 93 | |
84 | 94 | |
85 | 95 | |
| 96 | + |
86 | 97 | |
87 | 98 | |
88 | 99 | |
|
0 commit comments