Commit a738164
lib: define Event.isTrusted in the prototype
Don't conform to the spec with isTrusted. The spec defines it as
`LegacyUnforgeable` but defining it in the constructor has a big
performance impact and the property doesn't seem to be useful outside of
browsers.
Refs: nodejs/performance#32
PR-URL: #46974
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4b4336c commit a738164Copy full SHA for a738164
File tree
Expand file treeCollapse file tree
5 files changed
+17
-7
lines changedOpen diff view settings
Filter options
- lib/internal
- test
- parallel
- wpt/status/dom
Expand file treeCollapse file tree
5 files changed
+17
-7
lines changedOpen diff view settings
Collapse file
lib/internal/event_target.js
Copy file name to clipboardExpand all lines: lib/internal/event_target.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | | - |
123 | | - |
124 | 122 | |
125 | 123 | |
126 | 124 | |
| ||
343 | 341 | |
344 | 342 | |
345 | 343 | |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
346 | 349 | |
347 | 350 | |
348 | 351 | |
|
Collapse file
test/parallel/test-abortcontroller.js
Copy file name to clipboardExpand all lines: test/parallel/test-abortcontroller.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
61 | | - |
62 | | - |
| 60 | + |
| 61 | + |
| 62 | + |
63 | 63 | |
64 | 64 | |
65 | 65 | |
|
Collapse file
test/parallel/test-events-customevent.js
Copy file name to clipboardExpand all lines: test/parallel/test-events-customevent.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
187 | 187 | |
188 | 188 | |
189 | 189 | |
190 | | - |
| 190 | + |
191 | 191 | |
192 | 192 | |
193 | 193 | |
|
Collapse file
test/parallel/test-eventtarget.js
Copy file name to clipboardExpand all lines: test/parallel/test-eventtarget.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
126 | 126 | |
127 | 127 | |
128 | 128 | |
129 | | - |
| 129 | + |
130 | 130 | |
131 | 131 | |
132 | 132 | |
|
Collapse file
test/wpt/status/dom/events.json
Copy file name to clipboardExpand all lines: test/wpt/status/dom/events.json+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
14 | 21 | |
15 | 22 | |
16 | 23 | |
|
0 commit comments