diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-10-04 13:11:36 +0200 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-10-11 14:35:17 +0000 |
commit | eee522ac29864a55a8bc6686e6b38e93270aa1ca (patch) | |
tree | 3e7ac32cf16d758f1f7480fcb7ef47070c005391 /.eslintrc.js | |
parent | 705d888387f7a58c10711acbe5a4661c496969ad (diff) | |
download | node-new-eee522ac29864a55a8bc6686e6b38e93270aa1ca.tar.gz |
lib: add EventTarget-related browser globals
Add
- Event
- EventTarget
- MessagePort
- MessageChannel
- MessageEvent
to the set of global objects, since they are available now and behave
like they do in the browser.
Fixes: https://github.com/nodejs/node/issues/35495
PR-URL: https://github.com/nodejs/node/pull/35496
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 8464945125..99f7196ffc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -287,6 +287,11 @@ module.exports = { BigInt: 'readable', BigInt64Array: 'readable', BigUint64Array: 'readable', + Event: 'readable', + EventTarget: 'readable', + MessageChannel: 'readable', + MessageEvent: 'readable', + MessagePort: 'readable', TextEncoder: 'readable', TextDecoder: 'readable', queueMicrotask: 'readable', |