File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in Nati
31
31
symbolPrototype . constructor = SymbolWrapper ;
32
32
33
33
var symbolToString = symbolPrototype . toString ;
34
- var nativeString = String ( NativeSymbol ( 'test' ) ) == 'Symbol(test)' ;
34
+ var nativeSymbol = String ( NativeSymbol ( 'test' ) ) == 'Symbol(test)' ;
35
35
var regexp = / ^ S y m b o l \( ( .* ) \) [ ^ ) ] + $ / ;
36
36
defineProperty ( symbolPrototype , 'description' , {
37
37
configurable : true ,
38
38
get : function description ( ) {
39
39
var symbol = isObject ( this ) ? this . valueOf ( ) : this ;
40
40
var string = symbolToString . call ( symbol ) ;
41
41
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' ) ;
43
43
return desc === '' ? undefined : desc ;
44
44
}
45
45
} ) ;
You can’t perform that action at this time.
0 commit comments