File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { unhandledRejection } from './unhandled_rejection.js'
88import { rejectionHandled } from './rejection_handled.js'
99import { multipleResolves } from './multiple_resolves.js'
1010import { warning } from './warning.js'
11- import { hasMultipleResolves } from './version.js'
1211
1312const getEventsMap = function ( ) {
1413 return mapValues ( EVENTS_SIMPLE_MAP , getEvent )
@@ -18,7 +17,7 @@ const EVENTS_SIMPLE_MAP = {
1817 uncaughtException,
1918 unhandledRejection,
2019 rejectionHandled,
21- ... ( hasMultipleResolves ( ) ? { multipleResolves } : { } ) ,
20+ multipleResolves,
2221 warning,
2322}
2423
Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ import { version } from 'process'
22
33import semver from 'semver'
44
5- // `multipleResolves` was introduced in Node `10.12.0`
6- export const hasMultipleResolves = function ( ) {
7- return semver . gte ( version , MULTIPLE_RESOLVES_V )
8- }
9-
10- const MULTIPLE_RESOLVES_V = '10.12.0'
11-
125// `--unhandled-rejections` was introduced in Node `12.0.0`
136export const hasUnhandledFlag = function ( ) {
147 return semver . gte ( version , UNHANDLED_FLAG_V )
You can’t perform that action at this time.
0 commit comments