perf_hooks: make Performance extend EventTarget#37621
perf_hooks: make Performance extend EventTarget#37621targos wants to merge 1 commit intonodejs:masterfrom
Conversation
|
Test that passes with this change: node/test/fixtures/wpt/hr-time/basic.any.js Lines 30 to 37 in f3d3769 |
benjamingr
left a comment
There was a problem hiding this comment.
LGTM
(Is the fact it's an EventTarget actually used by the spec anywhere?)
|
@benjamingr It's used by another spec that extends Performance: https://developer.mozilla.org/en-US/docs/Web/API/Performance/resourcetimingbufferfull_event I don't know if it's important for us to extend EventTarget. I mostly implemented this so we can stop skipping |
I think it's not very important - I think it's beneficial regardless since it aligns us with the spec and it lets developers write universal code more easily without actually increasing maintenance cost :) |
|
I suppose it's a (very minor 😄) semver-minor change. |
jasnell
left a comment
There was a problem hiding this comment.
semver-extremely-minor ;-)
It is odd to have an EventTarget with no events but ok.
Refs: https://www.w3.org/TR/hr-time/#sec-performance PR-URL: #37621 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in 5d4fc63 |
|
#37467 should land first. Does it also need to be backported? |
|
#37467 landed fine - no need for a backport. |
|
Okay, I'll just wait for v15.x-staging to be pushed and I'll backport. |
|
@targos |
Refs: https://www.w3.org/TR/hr-time/#sec-performance PR-URL: nodejs#37621 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: https://www.w3.org/TR/hr-time/#sec-performance PR-URL: #37621 Backport-PR-URL: #37832 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: https://www.w3.org/TR/hr-time/#sec-performance PR-URL: #37621 Backport-PR-URL: #37832 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: https://www.w3.org/TR/hr-time/#sec-performance