Revert_Symbol rename.

This commit is contained in:
John-David Dalton
2016-01-15 21:43:53 -08:00
parent 2e02636fc1
commit fdea9a447f

View File

@@ -1284,14 +1284,14 @@
); );
/** Built-in value references. */ /** Built-in value references. */
var _Symbol = context.Symbol, var Reflect = context.Reflect,
Reflect = context.Reflect, Symbol = context.Symbol,
Uint8Array = context.Uint8Array, Uint8Array = context.Uint8Array,
clearTimeout = context.clearTimeout, clearTimeout = context.clearTimeout,
enumerate = Reflect ? Reflect.enumerate : undefined, enumerate = Reflect ? Reflect.enumerate : undefined,
getPrototypeOf = Object.getPrototypeOf, getPrototypeOf = Object.getPrototypeOf,
getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertySymbols = Object.getOwnPropertySymbols,
iteratorSymbol = typeof (iteratorSymbol = _Symbol && _Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined, iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
propertyIsEnumerable = objectProto.propertyIsEnumerable, propertyIsEnumerable = objectProto.propertyIsEnumerable,
setTimeout = context.setTimeout, setTimeout = context.setTimeout,
splice = arrayProto.splice; splice = arrayProto.splice;
@@ -1322,9 +1322,9 @@
setCtorString = Set ? funcToString.call(Set) : ''; setCtorString = Set ? funcToString.call(Set) : '';
/** Used to convert symbols to primitives and strings. */ /** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol ? _Symbol.prototype : undefined, var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = _Symbol ? symbolProto.valueOf : undefined, symbolValueOf = Symbol ? symbolProto.valueOf : undefined,
symbolToString = _Symbol ? symbolProto.toString : undefined; symbolToString = Symbol ? symbolProto.toString : undefined;
/** Used to lookup unminified function names. */ /** Used to lookup unminified function names. */
var realNames = {}; var realNames = {};
@@ -3689,7 +3689,7 @@
* @returns {Object} Returns the cloned symbol object. * @returns {Object} Returns the cloned symbol object.
*/ */
function cloneSymbol(symbol) { function cloneSymbol(symbol) {
return _Symbol ? Object(symbolValueOf.call(symbol)) : {}; return Symbol ? Object(symbolValueOf.call(symbol)) : {};
} }
/** /**
@@ -4577,7 +4577,7 @@
equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG); equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG);
case symbolTag: case symbolTag:
return !!_Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other)); return !!Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other));
} }
return false; return false;
} }
@@ -10354,7 +10354,7 @@
return ''; return '';
} }
if (isSymbol(value)) { if (isSymbol(value)) {
return _Symbol ? symbolToString.call(value) : ''; return Symbol ? symbolToString.call(value) : '';
} }
var result = (value + ''); var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;