chore: sunset Node.js 12 (#16512)
This commit is contained in:
parent
0a70c624d6
commit
09e6bb9c0f
5
.github/workflows/tests_primary.yml
vendored
5
.github/workflows/tests_primary.yml
vendored
|
|
@ -34,9 +34,6 @@ jobs:
|
|||
os: [ubuntu-22.04]
|
||||
node-version: [14]
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
node-version: 12
|
||||
browser: chromium
|
||||
- os: ubuntu-22.04
|
||||
node-version: 16
|
||||
browser: chromium
|
||||
|
|
@ -106,8 +103,6 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
node-version: [14]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
node-version: 12
|
||||
- os: ubuntu-latest
|
||||
node-version: 16
|
||||
- os: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -18,13 +18,13 @@ const currentNodeVersion = process.versions.node;
|
|||
const semver = currentNodeVersion.split('.');
|
||||
const [major] = [+semver[0]];
|
||||
|
||||
if (major < 12) {
|
||||
if (major < 14) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(
|
||||
'You are running Node.js ' +
|
||||
currentNodeVersion +
|
||||
'.\n' +
|
||||
'Playwright requires Node.js 12 or higher. \n' +
|
||||
'Playwright requires Node.js 14 or higher. \n' +
|
||||
'Please update your version of Node.js.'
|
||||
);
|
||||
process.exit(1);
|
||||
|
|
|
|||
|
|
@ -64,9 +64,6 @@ export function isInternalFileName(file: string, functionName?: string): boolean
|
|||
// EventEmitter.emit has 'events.js' file.
|
||||
if (file === 'events.js' && functionName?.endsWith('emit'))
|
||||
return true;
|
||||
// Node 12
|
||||
if (file === '_stream_readable.js' || file === '_stream_writable.js')
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue