Ensure toPath works with a nullish value.

This commit is contained in:
jdalton
2015-03-31 00:50:47 -07:00
parent 6a696dde3a
commit 4bdb82a7a2

View File

@@ -4570,7 +4570,7 @@
return value; return value;
} }
var result = []; var result = [];
(value + '').replace(rePropName, function(match, number, quote, string) { baseToString(value).replace(rePropName, function(match, number, quote, string) {
result.push(typeof string == 'string' ? string : (number || match)); result.push(typeof string == 'string' ? string : (number || match));
}); });
return result; return result;