Commit eee522a
lib: add EventTarget-related browser globals
Add
- Event
- EventTarget
- MessagePort
- MessageChannel
- MessageEvent
to the set of global objects, since they are available now and behave
like they do in the browser.
Fixes: #35495
PR-URL: #35496
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Khaidi Chu <i@2333.moe>1 parent 705d888 commit eee522aCopy full SHA for eee522a
File tree
Expand file treeCollapse file tree
11 files changed
+128
-18
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/bootstrap
- src
- test/parallel
Expand file treeCollapse file tree
11 files changed
+128
-18
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
287 | 287 | |
288 | 288 | |
289 | 289 | |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
290 | 295 | |
291 | 296 | |
292 | 297 | |
|
Collapse file
+18-3Lines changed: 18 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1069 | 1069 | |
1070 | 1070 | |
1071 | 1071 | |
| 1072 | + |
1072 | 1073 | |
1073 | 1074 | |
1074 | 1075 | |
| 1076 | + |
| 1077 | + |
| 1078 | + |
| 1079 | + |
| 1080 | + |
1075 | 1081 | |
1076 | 1082 | |
1077 | 1083 | |
| ||
1082 | 1088 | |
1083 | 1089 | |
1084 | 1090 | |
1085 | | - |
| 1091 | + |
1086 | 1092 | |
1087 | 1093 | |
1088 | 1094 | |
| ||
1168 | 1174 | |
1169 | 1175 | |
1170 | 1176 | |
1171 | | - |
| 1177 | + |
1172 | 1178 | |
1173 | 1179 | |
1174 | 1180 | |
| ||
1189 | 1195 | |
1190 | 1196 | |
1191 | 1197 | |
| 1198 | + |
| 1199 | + |
| 1200 | + |
| 1201 | + |
1192 | 1202 | |
1193 | 1203 | |
1194 | 1204 | |
| ||
1341 | 1351 | |
1342 | 1352 | |
1343 | 1353 | |
| 1354 | + |
| 1355 | + |
| 1356 | + |
| 1357 | + |
| 1358 | + |
1344 | 1359 | |
1345 | 1360 | |
1346 | 1361 | |
| ||
1374 | 1389 | |
1375 | 1390 | |
1376 | 1391 | |
1377 | | - |
| 1392 | + |
1378 | 1393 | |
1379 | 1394 | |
1380 | 1395 | |
|
Collapse file
+55Lines changed: 55 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
169 | 169 | |
170 | 170 | |
171 | 171 | |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
172 | 196 | |
173 | 197 | |
174 | 198 | |
| ||
187 | 211 | |
188 | 212 | |
189 | 213 | |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
190 | 241 | |
191 | 242 | |
192 | 243 | |
| ||
322 | 373 | |
323 | 374 | |
324 | 375 | |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
325 | 380 | |
326 | 381 | |
327 | 382 | |
|
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
143 | 158 | |
144 | 159 | |
145 | 160 | |
|
Collapse file
src/node_external_reference.h
Copy file name to clipboardExpand all lines: src/node_external_reference.h+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
| 67 | + |
| 68 | + |
68 | 69 | |
69 | 70 | |
70 | 71 | |
|
Collapse file
+13-1Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| ||
860 | 861 | |
861 | 862 | |
862 | 863 | |
863 | | - |
| 864 | + |
| 865 | + |
| 866 | + |
| 867 | + |
| 868 | + |
| 869 | + |
| 870 | + |
| 871 | + |
| 872 | + |
| 873 | + |
864 | 874 | |
| 875 | + |
865 | 876 | |
866 | 877 | |
867 | 878 | |
868 | 879 | |
| 880 | + |
Collapse file
test/parallel/test-bootstrap-modules.js
Copy file name to clipboardExpand all lines: test/parallel/test-bootstrap-modules.js+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
| 34 | + |
34 | 35 | |
35 | 36 | |
36 | 37 | |
| ||
76 | 77 | |
77 | 78 | |
78 | 79 | |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
79 | 91 | |
80 | 92 | |
81 | 93 | |
| ||
84 | 96 | |
85 | 97 | |
86 | 98 | |
| 99 | + |
87 | 100 | |
88 | 101 | |
| 102 | + |
89 | 103 | |
90 | 104 | |
91 | 105 | |
|
Collapse file
test/parallel/test-event-on-async-iterator.js
Copy file name to clipboardExpand all lines: test/parallel/test-event-on-async-iterator.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | | - |
| 8 | + |
11 | 9 | |
12 | 10 | |
13 | 11 | |
|
Collapse file
test/parallel/test-events-once.js
Copy file name to clipboardExpand all lines: test/parallel/test-events-once.js+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | 12 | |
14 | 13 | |
15 | 14 | |
|
Collapse file
test/parallel/test-eventtarget-whatwg-passive.js
Copy file name to clipboardExpand all lines: test/parallel/test-eventtarget-whatwg-passive.js-6Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | 1 | |
3 | 2 | |
4 | 3 | |
5 | 4 | |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | 5 | |
12 | 6 | |
13 | 7 | |
|
0 commit comments