Skip to content

Commit 1c96c50

Browse files
committed
fix typo
1 parent 4f4d95e commit 1c96c50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core-js/modules/es.symbol.description.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in Nati
3131
symbolPrototype.constructor = SymbolWrapper;
3232

3333
var symbolToString = symbolPrototype.toString;
34-
var nativeString = String(NativeSymbol('test')) == 'Symbol(test)';
34+
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
3535
var regexp = /^Symbol\((.*)\)[^)]+$/;
3636
defineProperty(symbolPrototype, 'description', {
3737
configurable: true,
3838
get: function description() {
3939
var symbol = isObject(this) ? this.valueOf() : this;
4040
var string = symbolToString.call(symbol);
4141
if (has(EmptyStringDescriptionStore, symbol)) return '';
42-
var desc = nativeString ? string.slice(7, -1) : string.replace(regexp, '$1');
42+
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
4343
return desc === '' ? undefined : desc;
4444
}
4545
});

0 commit comments

Comments
 (0)