Skip to content

Commit

Permalink
fixup! repl: improve robustness wrt to prototype pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Nov 24, 2022
1 parent b03fcfb commit f120e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/util.js
Expand Up @@ -595,8 +595,8 @@ function SideEffectFreeRegExpPrototypeSymbolReplace(regex, string, replacement)
return getCrossRelmRegex(regex)[SymbolReplace](string, replacement);
}

function SideEffectFreeRegExpPrototypeSymbolSplit(regex, string, replacement) {
return getCrossRelmRegex(regex)[SymbolSplit](string, replacement);
function SideEffectFreeRegExpPrototypeSymbolSplit(regex, string, limit = undefined) {
return getCrossRelmRegex(regex)[SymbolSplit](string, limit);
}

module.exports = {
Expand Down

0 comments on commit f120e78

Please sign in to comment.