Skip to content

Commit 77e1565

Browse files
stefanprobstkodiakhq[bot]
andauthoredOct 30, 2021
remove Object.fromEntries polyfill for node 10 in test utils (#30657)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 48874f1 commit 77e1565

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎test/lib/next-test-utils.js

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ import treeKill from 'tree-kill'
2020
export const nextServer = server
2121
export const pkg = _pkg
2222

23-
// polyfill Object.fromEntries for the test/integration/relay-analytics tests
24-
// on node 10, this can be removed after we no longer support node 10
25-
if (!Object.fromEntries) {
26-
Object.fromEntries = require('core-js/features/object/from-entries')
27-
}
28-
2923
export function initNextServerScript(
3024
scriptPath,
3125
successRegexp,

0 commit comments

Comments
 (0)
Please sign in to comment.