Commit 06d49c1
src: implement natives binding without special casing
This patch removes special case in the internal binding loader
for natives, and implements it using the builtins internal
binding. Internally we do not actually need the natives binding,
so implement it as a legacy wrapper instead.
PR-URL: #48186
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent a2e107d commit 06d49c1Copy full SHA for 06d49c1
File tree
Expand file treeCollapse file tree
8 files changed
+43
-29
lines changedOpen diff view settings
Filter options
- lib/internal
- bootstrap
- debugger
- legacy
- src
- test/es-module
Expand file treeCollapse file tree
8 files changed
+43
-29
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/realm.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/realm.js+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
86 | 88 | |
87 | 89 | |
88 | 90 | |
| ||
124 | 126 | |
125 | 127 | |
126 | 128 | |
| 129 | + |
127 | 130 | |
128 | 131 | |
129 | 132 | |
| ||
145 | 148 | |
146 | 149 | |
147 | 150 | |
148 | | - |
| 151 | + |
149 | 152 | |
150 | 153 | |
151 | 154 | |
|
Collapse file
lib/internal/debugger/inspect_repl.js
Copy file name to clipboardExpand all lines: lib/internal/debugger/inspect_repl.js+2-6Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
118 | 118 | |
119 | 119 | |
120 | 120 | |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
| 121 | + |
125 | 122 | |
126 | 123 | |
127 | 124 | |
128 | 125 | |
129 | | - |
130 | | - |
| 126 | + |
131 | 127 | |
132 | 128 | |
133 | 129 | |
|
Collapse file
lib/internal/legacy/processbinding.js
Copy file name to clipboardExpand all lines: lib/internal/legacy/processbinding.js+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
36 | 44 | |
Collapse file
lib/internal/v8_prof_processor.js
Copy file name to clipboardExpand all lines: lib/internal/v8_prof_processor.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
16 | 16 | |
17 | 17 | |
18 | 18 | |
|
Collapse file
-9Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
635 | 635 | |
636 | 636 | |
637 | 637 | |
638 | | - |
639 | | - |
640 | | - |
641 | | - |
642 | | - |
643 | | - |
644 | | - |
645 | | - |
646 | | - |
647 | 638 | |
648 | 639 | |
649 | 640 | |
|
Collapse file
+17-4Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
67 | | - |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
68 | 72 | |
69 | | - |
| 73 | + |
70 | 74 | |
71 | 75 | |
72 | 76 | |
73 | 77 | |
74 | | - |
| 78 | + |
75 | 79 | |
76 | 80 | |
77 | 81 | |
| ||
689 | 693 | |
690 | 694 | |
691 | 695 | |
| 696 | + |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
692 | 704 | |
693 | 705 | |
694 | 706 | |
| ||
712 | 724 | |
713 | 725 | |
714 | 726 | |
| 727 | + |
715 | 728 | |
716 | 729 | |
717 | 730 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
107 | 107 | |
108 | 108 | |
109 | 109 | |
110 | | - |
111 | 110 | |
112 | 111 | |
113 | 112 | |
| ||
169 | 168 | |
170 | 169 | |
171 | 170 | |
| 171 | + |
| 172 | + |
| 173 | + |
172 | 174 | |
173 | 175 | |
174 | 176 | |
|
Collapse file
test/es-module/test-loaders-hidden-from-users.js
Copy file name to clipboardExpand all lines: test/es-module/test-loaders-hidden-from-users.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | | - |
| 20 | + |
| 21 | + |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
|
0 commit comments