Add comment to createRange to avoid refactoring the way start is resolved. [ci skip]

This commit is contained in:
John-David Dalton
2016-01-05 08:11:02 -08:00
parent 150511b263
commit 1df780abba

View File

@@ -4320,6 +4320,7 @@
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
end = step = undefined;
}
// Ensure the sign of `-0` is preserved.
start = toNumber(start);
start = start === start ? start : 0;
if (end === undefined) {