mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 21:46:48 +00:00

Refs: https://github.com/nodejs/node/pull/41872 Refs: https://github.com/nodejs/node/pull/41896 PR-URL: https://github.com/nodejs/node/pull/41990 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
15 lines
275 B
JavaScript
15 lines
275 B
JavaScript
import { expectWarning, mustCall } from '../common/index.mjs';
|
|
|
|
expectWarning(
|
|
'DeprecationWarning',
|
|
'The multipleResolves event has been deprecated.',
|
|
'DEP0160',
|
|
);
|
|
|
|
process.on('multipleResolves', mustCall());
|
|
|
|
new Promise((resolve) => {
|
|
resolve();
|
|
resolve();
|
|
});
|