diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml index b49d374c93..9283e93102 100644 --- a/.github/workflows/tests_primary.yml +++ b/.github/workflows/tests_primary.yml @@ -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 diff --git a/packages/playwright-core/index.js b/packages/playwright-core/index.js index a233e0822c..3c3892c3e1 100644 --- a/packages/playwright-core/index.js +++ b/packages/playwright-core/index.js @@ -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); diff --git a/packages/playwright-core/src/utils/stackTrace.ts b/packages/playwright-core/src/utils/stackTrace.ts index b9c07dd04d..f8b60663cc 100644 --- a/packages/playwright-core/src/utils/stackTrace.ts +++ b/packages/playwright-core/src/utils/stackTrace.ts @@ -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; }