Skip to content

Commit

Permalink
Fix Node.js 8 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 24, 2022
1 parent b6af783 commit 77cd490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-core/test/errors-stacks.js
@@ -1,5 +1,8 @@
import * as babel from "../lib/index.js";

// TODO: Remove this in Babel 8, once we drop Node.js 8
import { URL } from "url";

const replaceAll = "".replaceAll
? Function.call.bind("".replaceAll)
: (str, find, replace) => str.split(find).join(replace);
Expand Down

0 comments on commit 77cd490

Please sign in to comment.