Bump to v4.0.1.

This commit is contained in:
John-David Dalton
2016-01-13 00:57:48 -08:00
parent 0646bacd86
commit d8d0500f37
74 changed files with 4476 additions and 510 deletions

View File

@@ -1,12 +1,12 @@
var _Symbol = require('./internal/_Symbol'),
var Symbol = require('./internal/Symbol'),
isSymbol = require('./isSymbol');
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
symbolToString = _Symbol ? symbolProto.toString : undefined;
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Converts `value` to a string if it's not one. An empty string is returned
@@ -37,7 +37,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
return _Symbol ? symbolToString.call(value) : '';
return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;