From abf6eaa835c6642d2afac3e4695277daf220c4aa Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Sat, 30 Oct 2021 10:46:02 +0200 Subject: [PATCH] remove Object.fromEntries polyfill for node 10 in test utils --- test/lib/next-test-utils.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/lib/next-test-utils.js b/test/lib/next-test-utils.js index bdff22d2a7f7d..c4790c55683c2 100644 --- a/test/lib/next-test-utils.js +++ b/test/lib/next-test-utils.js @@ -20,12 +20,6 @@ import treeKill from 'tree-kill' export const nextServer = server export const pkg = _pkg -// polyfill Object.fromEntries for the test/integration/relay-analytics tests -// on node 10, this can be removed after we no longer support node 10 -if (!Object.fromEntries) { - Object.fromEntries = require('core-js/features/object/from-entries') -} - export function initNextServerScript( scriptPath, successRegexp,