Closed sbc100 closed 1 week ago
I noticed this while reviewing https://github.com/emscripten-core/emscripten/pull/22959
lgtm but maybe the last paragraph in the PR description is worth a changelog entry?
I don't think it could have any material effect. findEventTarget
should always be returning a DOM object.
lgtm but maybe the last paragraph in the PR description is worth a changelog entry?
I don't think it could have any material effect.
findEventTarget
should always be returning a DOM object.
I updated the change so there should be change at all there..
Rather than using try/catch to detect when
document
is missing we explicitly check for it. This is the same pattern used in the other version offindEventTarget
on line 336.This avoids casting a wide net and hiding errors in the rest of the code in this function. Its also more consistent with the other version of
findEventTarget
.