Skip to content

events: Handle a range of this values for dispatchEvent

On the web, dispatchEvent is finicky about its this value. An exception is thrown for this values which are not an EventTarget. However, null-ish values (null and undefined) do not throw and return immediately.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading