From 998fe72f5ef74674acec91473ab6c35e400ca194 Mon Sep 17 00:00:00 2001 From: Nick Lynch Date: Fri, 7 May 2021 14:14:43 +0100 Subject: [PATCH] chore: fix changelog rewrite to be node 10 compatible (#14582) Node 10 Javascript doesn't support the `??` operator; replacing with `||`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- scripts/changelog-experimental-fix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changelog-experimental-fix.js b/scripts/changelog-experimental-fix.js index bb8ea02462447..0c540c84fc500 100644 --- a/scripts/changelog-experimental-fix.js +++ b/scripts/changelog-experimental-fix.js @@ -75,4 +75,4 @@ function repoRoot() { } const defaultChangelogPath = path.join(repoRoot(), 'CHANGELOG.v2.md'); -rewriteChangelog(process.argv[2] ?? defaultChangelogPath); +rewriteChangelog(process.argv[2] || defaultChangelogPath);