You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
409 B
18 lines
409 B
'use strict'
|
|
|
|
const tap = require('tap')
|
|
const semver = require('semver')
|
|
|
|
if (semver.lt(process.versions.node, '13.3.0')) {
|
|
tap.pass('Skip because Node version <= 13.3.0')
|
|
tap.end()
|
|
} else {
|
|
// Import is not allowed syntax in Node 8
|
|
// eslint-disable-next-line
|
|
new Function('module', 'return import(module)')('./esm.mjs').catch((err) => {
|
|
process.nextTick(() => {
|
|
throw err
|
|
})
|
|
})
|
|
}
|