Skip to content

Commit

Permalink
remove Object.fromEntries polyfill for node 10 in test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Oct 30, 2021
1 parent c730f73 commit abf6eaa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/lib/next-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit abf6eaa

Please sign in to comment.