mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 08:42:45 +00:00

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: https://github.com/nodejs/node/pull/43885 Fixes: https://github.com/nodejs/node/issues/40678 Refs: https://github.com/nodejs/node/pull/43514 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
// Flags: --experimental-global-customevent --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);
|