24 lines
359 B
JavaScript
24 lines
359 B
JavaScript
|
//// [symbolType3.ts]
|
||
|
var s = Symbol();
|
||
|
delete Symbol.iterator;
|
||
|
void Symbol.toPrimitive;
|
||
|
typeof Symbol.toStringTag;
|
||
|
++s;
|
||
|
--s;
|
||
|
+ Symbol();
|
||
|
- Symbol();
|
||
|
~ Symbol();
|
||
|
! Symbol();
|
||
|
|
||
|
//// [symbolType3.js]
|
||
|
var s = Symbol();
|
||
|
delete Symbol.iterator;
|
||
|
void Symbol.toPrimitive;
|
||
|
typeof Symbol.toStringTag;
|
||
|
++s;
|
||
|
--s;
|
||
|
+Symbol();
|
||
|
-Symbol();
|
||
|
~Symbol();
|
||
|
!Symbol();
|