60 lines
1.2 KiB
Text
60 lines
1.2 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolType3.ts ===
|
|
var s = Symbol();
|
|
>s : symbol
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
delete Symbol.iterator;
|
|
>delete Symbol.iterator : boolean
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
void Symbol.toPrimitive;
|
|
>void Symbol.toPrimitive : undefined
|
|
>Symbol.toPrimitive : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toPrimitive : symbol
|
|
|
|
typeof Symbol.toStringTag;
|
|
>typeof Symbol.toStringTag : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
|
|
++s;
|
|
>++s : number
|
|
>s : symbol
|
|
|
|
--s;
|
|
>--s : number
|
|
>s : symbol
|
|
|
|
+ Symbol();
|
|
>+ Symbol() : number
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
- Symbol();
|
|
>- Symbol() : number
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
~ Symbol();
|
|
>~ Symbol() : number
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
! Symbol();
|
|
>! Symbol() : boolean
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
|
|
+(Symbol() || 0);
|
|
>+(Symbol() || 0) : number
|
|
>(Symbol() || 0) : symbol | 0
|
|
>Symbol() || 0 : symbol | 0
|
|
>Symbol() : symbol
|
|
>Symbol : SymbolConstructor
|
|
>0 : 0
|
|
|