Commit 33f32dc
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 4850ba4 commit 33f32dcCopy full SHA for 33f32dc
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 | |
| ||
325 | 323 | |
326 | 324 | |
327 | 325 | |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
328 | 331 | |
329 | 332 | |
330 | 333 | |
|
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 |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
30 | 37 | |
31 | 38 | |
32 | 39 | |
|
0 commit comments