diff --git a/tools/dep_updaters/update-root-certs.mjs b/tools/dep_updaters/update-root-certs.mjs index a5516860248603..64f3c88b851b7f 100644 --- a/tools/dep_updaters/update-root-certs.mjs +++ b/tools/dep_updaters/update-root-certs.mjs @@ -28,7 +28,7 @@ const getCertdataURL = (version) => { return certdataURL; }; -const normalizeTD = (text) => { +const normalizeTD = (text = '') => { // Remove whitespace and any HTML tags. return text?.trim().replace(/<.*?>/g, ''); };