Commit a4dfe3b
committed
lib: flatten access to primordials
Store all primordials as properties of the primordials object.
Static functions are prefixed by the constructor's name and prototype
methods are prefixed by the constructor's name followed by "Prototype".
For example: primordials.Object.keys becomes primordials.ObjectKeys.
Backport-PR-URL: #30731
PR-URL: #30610
Refs: #29766
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent cbd5026 commit a4dfe3bCopy full SHA for a4dfe3b
File tree
Expand file treeCollapse file tree
117 files changed
+1308
-937
lines changedOpen diff view settings
Filter options
- lib
- internal
- assert
- bootstrap
- child_process
- cluster
- console
- crypto
- dns
- fs
- http2
- main
- modules
- cjs
- esm
- per_context
- policy
- process
- repl
- source_map
- streams
- util
- vm
- worker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
117 files changed
+1308
-937
lines changedOpen diff view settings
Collapse file
+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
| 25 | + |
| 26 | + |
| 27 | + |
30 | 28 | |
31 | 29 | |
32 | 30 | |
|
Collapse file
+9-5Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
25 | 29 | |
26 | 30 | |
27 | 31 | |
| ||
107 | 111 | |
108 | 112 | |
109 | 113 | |
110 | | - |
| 114 | + |
111 | 115 | |
112 | 116 | |
113 | 117 | |
| ||
216 | 220 | |
217 | 221 | |
218 | 222 | |
219 | | - |
| 223 | + |
220 | 224 | |
221 | 225 | |
222 | 226 | |
| ||
295 | 299 | |
296 | 300 | |
297 | 301 | |
298 | | - |
299 | | - |
| 302 | + |
| 303 | + |
300 | 304 | |
301 | 305 | |
302 | 306 | |
|
Collapse file
+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
25 | 27 | |
26 | 28 | |
27 | 29 | |
| ||
95 | 97 | |
96 | 98 | |
97 | 99 | |
98 | | - |
| 100 | + |
99 | 101 | |
100 | 102 | |
101 | 103 | |
|
Collapse file
+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
25 | 28 | |
26 | 29 | |
27 | 30 | |
| ||
80 | 83 | |
81 | 84 | |
82 | 85 | |
83 | | - |
84 | | - |
| 86 | + |
| 87 | + |
85 | 88 | |
86 | | - |
| 89 | + |
87 | 90 | |
88 | 91 | |
89 | 92 | |
|
Collapse file
+31-25Lines changed: 31 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
25 | 31 | |
26 | 32 | |
27 | 33 | |
| ||
109 | 115 | |
110 | 116 | |
111 | 117 | |
112 | | - |
113 | | - |
| 118 | + |
| 119 | + |
114 | 120 | |
115 | | - |
| 121 | + |
116 | 122 | |
117 | 123 | |
118 | 124 | |
| ||
122 | 128 | |
123 | 129 | |
124 | 130 | |
125 | | - |
| 131 | + |
126 | 132 | |
127 | 133 | |
128 | 134 | |
129 | 135 | |
130 | 136 | |
131 | | - |
| 137 | + |
132 | 138 | |
133 | 139 | |
134 | 140 | |
135 | 141 | |
136 | 142 | |
137 | | - |
| 143 | + |
138 | 144 | |
139 | 145 | |
140 | 146 | |
141 | 147 | |
142 | 148 | |
143 | | - |
| 149 | + |
144 | 150 | |
145 | 151 | |
146 | 152 | |
147 | 153 | |
148 | 154 | |
149 | 155 | |
150 | | - |
| 156 | + |
151 | 157 | |
152 | 158 | |
153 | 159 | |
154 | 160 | |
155 | 161 | |
156 | 162 | |
157 | 163 | |
158 | | - |
159 | | - |
| 164 | + |
| 165 | + |
160 | 166 | |
161 | 167 | |
162 | 168 | |
| ||
165 | 171 | |
166 | 172 | |
167 | 173 | |
168 | | - |
| 174 | + |
169 | 175 | |
170 | 176 | |
171 | 177 | |
| ||
174 | 180 | |
175 | 181 | |
176 | 182 | |
177 | | - |
| 183 | + |
178 | 184 | |
179 | 185 | |
180 | 186 | |
181 | | - |
182 | | - |
| 187 | + |
| 188 | + |
183 | 189 | |
184 | 190 | |
185 | 191 | |
| ||
194 | 200 | |
195 | 201 | |
196 | 202 | |
197 | | - |
| 203 | + |
198 | 204 | |
199 | 205 | |
200 | 206 | |
| ||
214 | 220 | |
215 | 221 | |
216 | 222 | |
217 | | - |
| 223 | + |
218 | 224 | |
219 | 225 | |
220 | 226 | |
| ||
359 | 365 | |
360 | 366 | |
361 | 367 | |
362 | | - |
| 368 | + |
363 | 369 | |
364 | 370 | |
365 | 371 | |
| ||
520 | 526 | |
521 | 527 | |
522 | 528 | |
523 | | - |
| 529 | + |
524 | 530 | |
525 | 531 | |
526 | 532 | |
| ||
540 | 546 | |
541 | 547 | |
542 | 548 | |
543 | | - |
| 549 | + |
544 | 550 | |
545 | 551 | |
546 | 552 | |
547 | 553 | |
548 | 554 | |
549 | 555 | |
550 | | - |
| 556 | + |
551 | 557 | |
552 | | - |
| 558 | + |
553 | 559 | |
554 | 560 | |
555 | 561 | |
| ||
601 | 607 | |
602 | 608 | |
603 | 609 | |
604 | | - |
| 610 | + |
605 | 611 | |
606 | 612 | |
607 | 613 | |
608 | 614 | |
609 | 615 | |
610 | | - |
| 616 | + |
611 | 617 | |
612 | 618 | |
613 | 619 | |
| ||
688 | 694 | |
689 | 695 | |
690 | 696 | |
691 | | - |
| 697 | + |
692 | 698 | |
693 | 699 | |
694 | 700 | |
|
Collapse file
+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 25 | + |
| 26 | + |
29 | 27 | |
30 | 28 | |
31 | 29 | |
| ||
260 | 258 | |
261 | 259 | |
262 | 260 | |
263 | | - |
| 261 | + |
264 | 262 | |
265 | 263 | |
266 | 264 | |
|
Collapse file
+15-11Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
30 | 34 | |
31 | 35 | |
32 | 36 | |
33 | 37 | |
34 | 38 | |
35 | 39 | |
36 | | - |
37 | | - |
| 40 | + |
| 41 | + |
38 | 42 | |
39 | 43 | |
40 | 44 | |
41 | | - |
| 45 | + |
42 | 46 | |
43 | 47 | |
44 | 48 | |
| ||
68 | 72 | |
69 | 73 | |
70 | 74 | |
71 | | - |
| 75 | + |
72 | 76 | |
73 | 77 | |
74 | 78 | |
| ||
78 | 82 | |
79 | 83 | |
80 | 84 | |
81 | | - |
| 85 | + |
82 | 86 | |
83 | 87 | |
84 | 88 | |
| ||
88 | 92 | |
89 | 93 | |
90 | 94 | |
91 | | - |
| 95 | + |
92 | 96 | |
93 | 97 | |
94 | 98 | |
| ||
98 | 102 | |
99 | 103 | |
100 | 104 | |
101 | | - |
| 105 | + |
102 | 106 | |
103 | 107 | |
104 | 108 | |
| ||
108 | 112 | |
109 | 113 | |
110 | 114 | |
111 | | - |
| 115 | + |
112 | 116 | |
113 | 117 | |
114 | 118 | |
| ||
118 | 122 | |
119 | 123 | |
120 | 124 | |
121 | | - |
| 125 | + |
122 | 126 | |
123 | 127 | |
124 | 128 | |
| ||
143 | 147 | |
144 | 148 | |
145 | 149 | |
146 | | - |
| 150 | + |
147 | 151 | |
148 | 152 | |
149 | 153 | |
|
0 commit comments