JavaScript incompatibility - Errors using custom events

I’ve noticed some odd behavior using the EventTarget class. Errors are thrown all over the place, but it works fine in Chromium, Firefox, and Opera.

This is very technical and I can provide screenshots, but right off the bat -when Brave starts I notice it already throws it’s own errors … the first: require is not defined


Brave 0.23.73
rev 50bdb6d
Muon 8.0.3
OS Release 4.18.5-arch1-1-ARCH
Update Channel Release
OS Architecture x64
OS Platform Linux
Node.js 7.9.0
Brave Sync v1.4.2
libchromiumcontent 68.0.3440.75