summaryrefslogtreecommitdiff
path: root/test/parallel/test-abortcontroller.js
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2020-11-06 18:04:18 +0100
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2020-11-09 19:25:15 +0100
commit36fbbe0b86131fa2dcca558872b02335586e0089 (patch)
tree1e886dc95768139fb6b2adfe2fe9f69d2f697098 /test/parallel/test-abortcontroller.js
parentb589128f6f4c3c6f636bfb0146957847ef0a8d53 (diff)
downloadnode-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.js3
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