stringToPath: avoid shadowing variable. (#3226)

This commit is contained in:
John-David Dalton
2018-02-02 15:51:14 -08:00
parent 45ac7f3bcc
commit 20c5307542

View File

@@ -6730,8 +6730,8 @@
if (reLeadingDot.test(string)) { if (reLeadingDot.test(string)) {
result.push(''); result.push('');
} }
string.replace(rePropName, function(match, number, quote, string) { string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
}); });
return result; return result;
}); });