diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2020-11-06 18:04:18 +0100 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2020-11-09 19:25:15 +0100 |
commit | 36fbbe0b86131fa2dcca558872b02335586e0089 (patch) | |
tree | 1e886dc95768139fb6b2adfe2fe9f69d2f697098 /test/parallel/test-abortcontroller.js | |
parent | b589128f6f4c3c6f636bfb0146957847ef0a8d53 (diff) | |
download | node-new-36fbbe0b86131fa2dcca558872b02335586e0089.tar.gz |
test: use global.EventTarget instead of internals
`EventTarget` is exposed on the global scope, there is no need to use
`--expose-internals` flag in the tests.
Refs: https://github.com/nodejs/node/pull/35496
PR-URL: https://github.com/nodejs/node/pull/36002
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/parallel/test-abortcontroller.js')
-rw-r--r-- | test/parallel/test-abortcontroller.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-abortcontroller.js b/test/parallel/test-abortcontroller.js index 9a43818220..8910ac7155 100644 --- a/test/parallel/test-abortcontroller.js +++ b/test/parallel/test-abortcontroller.js @@ -1,10 +1,9 @@ -// Flags: --no-warnings --expose-internals +// Flags: --no-warnings 'use strict'; const common = require('../common'); const { ok, strictEqual } = require('assert'); -const { Event } = require('internal/event_target'); { // Tests that abort is fired with the correct event type on AbortControllers |