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)) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});