node/test/parallel/test-global-customevent.js
Daeyeon Jeong 80270994d6
lib: enable global CustomEvent by default
Refs: https://github.com/nodejs/node/pull/43885

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/44860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-10-10 00:41:55 +00:00

12 lines
273 B
JavaScript

// Flags: --expose-internals
'use strict';
require('../common');
const { strictEqual, ok } = require('node:assert');
const { CustomEvent: internalCustomEvent } = require('internal/event_target');
// Global
ok(CustomEvent);
strictEqual(CustomEvent, internalCustomEvent);