/third_party/jerryscript/tests/jerry/es2015/ |
D | object-prototype-tostring.js | 16 assert (Symbol.prototype[Symbol.toStringTag] === "Symbol"); 19 assert (delete Symbol.prototype[Symbol.toStringTag]); 20 assert (Symbol.prototype[Symbol.toStringTag] === undefined); 21 Symbol.prototype[Symbol.toStringTag] = "myStringTag1"; 23 Symbol.prototype[Symbol.toStringTag] = {}; 27 assert (Math[Symbol.toStringTag] === "Math"); 30 assert (delete Math[Symbol.toStringTag]); 31 assert (Math[Symbol.toStringTag] === undefined); 32 Math[Symbol.toStringTag] = "myStringTag2"; 34 Math[Symbol.toStringTag] = {}; [all …]
|
/third_party/typescript/lib/ |
D | lib.es2015.symbol.wellknown.d.ts | 76 readonly toStringTag: symbol; property 91 readonly [Symbol.toStringTag]: string; 135 readonly [Symbol.toStringTag]: string; 139 readonly [Symbol.toStringTag]: string; 143 readonly [Symbol.toStringTag]: string; 147 readonly [Symbol.toStringTag]: string; 151 readonly [Symbol.toStringTag]: string; 166 readonly [Symbol.toStringTag]: string; 170 readonly [Symbol.toStringTag]: string; 174 readonly [Symbol.toStringTag]: string; [all …]
|
/third_party/typescript/src/lib/ |
D | es2015.symbol.wellknown.d.ts | 56 readonly toStringTag: symbol; property 71 readonly [Symbol.toStringTag]: string; 115 readonly [Symbol.toStringTag]: string; 119 readonly [Symbol.toStringTag]: string; 123 readonly [Symbol.toStringTag]: string; 127 readonly [Symbol.toStringTag]: string; 131 readonly [Symbol.toStringTag]: string; 146 readonly [Symbol.toStringTag]: string; 150 readonly [Symbol.toStringTag]: string; 154 readonly [Symbol.toStringTag]: string; [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | typedArraysCrossAssignability01.errors.txt | 2 Types of property '[Symbol.toStringTag]' are incompatible. 5 Types of property '[Symbol.toStringTag]' are incompatible. 8 Types of property '[Symbol.toStringTag]' are incompatible. 11 Types of property '[Symbol.toStringTag]' are incompatible. 14 Types of property '[Symbol.toStringTag]' are incompatible. 17 Types of property '[Symbol.toStringTag]' are incompatible. 20 Types of property '[Symbol.toStringTag]' are incompatible. 23 Types of property '[Symbol.toStringTag]' are incompatible. 26 Types of property '[Symbol.toStringTag]' are incompatible. 29 Types of property '[Symbol.toStringTag]' are incompatible. [all …]
|
D | symbolProperty18.types | 3 >i : { [Symbol.iterator]: number; [Symbol.toStringTag](): string; [Symbol.toPrimitive]: boolean; } 4 …0, [Symbol.toStringTag]() { return "" }, set [Symbol.toPrimitive](p: boolean) { }} : { [Symb… 13 [Symbol.toStringTag]() { return "" }, 14 >[Symbol.toStringTag] : () => string 15 >Symbol.toStringTag : symbol 17 >toStringTag : symbol 31 >i : { [Symbol.iterator]: number; [Symbol.toStringTag](): string; [Symbol.toPrimitive]: boolean; } 36 var str = i[Symbol.toStringTag](); 38 >i[Symbol.toStringTag]() : string 39 >i[Symbol.toStringTag] : () => string [all …]
|
D | symbolProperty26.symbols | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : Symbol(C1[Symbol.toStringTag], Decl(symbolProperty26.ts, 0, 10)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 19 [Symbol.toStringTag]() { 20 >[Symbol.toStringTag] : Symbol(C2[Symbol.toStringTag], Decl(symbolProperty26.ts, 6, 21)) 21 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 23 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty27.symbols | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : Symbol(C1[Symbol.toStringTag], Decl(symbolProperty27.ts, 0, 10)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 19 [Symbol.toStringTag]() { 20 >[Symbol.toStringTag] : Symbol(C2[Symbol.toStringTag], Decl(symbolProperty27.ts, 6, 21)) 21 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 23 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty19.types | 3 >i : { [Symbol.iterator]: { p: any; }; [Symbol.toStringTag](): { p: any; }; } 4 …: { p: null }, [Symbol.toStringTag]() { return { p: undefined }; }} : { [Symbol.iterator]: { p:… 15 [Symbol.toStringTag]() { return { p: undefined }; } 16 >[Symbol.toStringTag] : () => { p: any; } 17 >Symbol.toStringTag : symbol 19 >toStringTag : symbol 28 >i : { [Symbol.iterator]: { p: any; }; [Symbol.toStringTag](): { p: any; }; } 33 var str = i[Symbol.toStringTag](); 35 >i[Symbol.toStringTag]() : { p: any; } 36 >i[Symbol.toStringTag] : () => { p: any; } [all …]
|
D | symbolProperty35.symbols | 5 [Symbol.toStringTag](): { x: string } 6 >[Symbol.toStringTag] : Symbol(I1[Symbol.toStringTag], Decl(symbolProperty35.ts, 0, 14)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 15 [Symbol.toStringTag](): { x: number } 16 >[Symbol.toStringTag] : Symbol(I2[Symbol.toStringTag], Decl(symbolProperty35.ts, 3, 14)) 17 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 19 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty28.symbols | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : Symbol(C1[Symbol.toStringTag], Decl(symbolProperty28.ts, 0, 10)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 24 var obj = c[Symbol.toStringTag]().x; 26 >c[Symbol.toStringTag]().x : Symbol(x, Decl(symbolProperty28.ts, 2, 16)) 28 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 30 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty60.symbols | 6 [Symbol.toStringTag]: string; 7 >[Symbol.toStringTag] : Symbol(I1[Symbol.toStringTag], Decl(symbolProperty60.ts, 1, 14)) 8 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 10 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 19 [Symbol.toStringTag]: string; 20 >[Symbol.toStringTag] : Symbol(I2[Symbol.toStringTag], Decl(symbolProperty60.ts, 6, 14)) 21 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 23 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty28.types | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : () => { x: string; } 7 >Symbol.toStringTag : symbol 9 >toStringTag : symbol 25 var obj = c[Symbol.toStringTag]().x; 27 >c[Symbol.toStringTag]().x : string 28 >c[Symbol.toStringTag]() : { x: string; } 29 >c[Symbol.toStringTag] : () => { x: string; } 31 >Symbol.toStringTag : symbol 33 >toStringTag : symbol
|
D | symbolProperty20.symbols | 12 [Symbol.toStringTag](s: number): number; 13 >[Symbol.toStringTag] : Symbol(I[Symbol.toStringTag], Decl(symbolProperty20.ts, 1, 45)) 14 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 16 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 32 [Symbol.toStringTag](n) { return n; } 33 >[Symbol.toStringTag] : Symbol([Symbol.toStringTag], Decl(symbolProperty20.ts, 6, 30)) 34 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 36 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty20.types | 10 [Symbol.toStringTag](s: number): number; 11 >[Symbol.toStringTag] : (s: number) => number 12 >Symbol.toStringTag : symbol 14 >toStringTag : symbol 20 …erator]: s => s, [Symbol.toStringTag](n) { return n; }} : { [Symbol.iterator]: (s: string) => s… 31 [Symbol.toStringTag](n) { return n; } 32 >[Symbol.toStringTag] : (n: number) => number 33 >Symbol.toStringTag : symbol 35 >toStringTag : symbol
|
D | symbolProperty26.types | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : () => string 7 >Symbol.toStringTag : symbol 9 >toStringTag : symbol 20 [Symbol.toStringTag]() { 21 >[Symbol.toStringTag] : () => string 22 >Symbol.toStringTag : symbol 24 >toStringTag : symbol
|
D | symbolProperty27.types | 5 [Symbol.toStringTag]() { 6 >[Symbol.toStringTag] : () => {} 7 >Symbol.toStringTag : symbol 9 >toStringTag : symbol 20 [Symbol.toStringTag]() { 21 >[Symbol.toStringTag] : () => string 22 >Symbol.toStringTag : symbol 24 >toStringTag : symbol
|
D | symbolProperty35.types | 3 [Symbol.toStringTag](): { x: string } 4 >[Symbol.toStringTag] : () => { x: string;} 5 >Symbol.toStringTag : symbol 7 >toStringTag : symbol 11 [Symbol.toStringTag](): { x: number } 12 >[Symbol.toStringTag] : () => { x: number;} 13 >Symbol.toStringTag : symbol 15 >toStringTag : symbol
|
D | symbolProperty19.symbols | 12 [Symbol.toStringTag]() { return { p: undefined }; } 13 >[Symbol.toStringTag] : Symbol([Symbol.toStringTag], Decl(symbolProperty19.ts, 1, 35)) 14 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 16 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 28 var str = i[Symbol.toStringTag](); 31 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 33 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty60.types | 4 [Symbol.toStringTag]: string; 5 >[Symbol.toStringTag] : string 6 >Symbol.toStringTag : symbol 8 >toStringTag : symbol 15 [Symbol.toStringTag]: string; 16 >[Symbol.toStringTag] : string 17 >Symbol.toStringTag : symbol 19 >toStringTag : symbol
|
D | symbolProperty18.symbols | 11 [Symbol.toStringTag]() { return "" }, 12 >[Symbol.toStringTag] : Symbol([Symbol.toStringTag], Decl(symbolProperty18.ts, 1, 25)) 13 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 15 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 32 var str = i[Symbol.toStringTag](); 35 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 37 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | parserSymbolProperty7.symbols | 5 [Symbol.toStringTag](): void { } 6 >[Symbol.toStringTag] : Symbol(C[Symbol.toStringTag], Decl(parserSymbolProperty7.ts, 0, 9)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | parserSymbolProperty6.symbols | 5 [Symbol.toStringTag]: string = ""; 6 >[Symbol.toStringTag] : Symbol(C[Symbol.toStringTag], Decl(parserSymbolProperty6.ts, 0, 9)) 7 >Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | symbolProperty5.types | 3 >x : { [Symbol.iterator]: number; [Symbol.toPrimitive](): void; readonly [Symbol.toStringTag]: numb… 4 …get [Symbol.toStringTag]() { return 0; }} : { [Symbol.iterator]: number; [Symbol.toPrimi… 19 get [Symbol.toStringTag]() { 20 >[Symbol.toStringTag] : number 21 >Symbol.toStringTag : symbol 23 >toStringTag : symbol
|
D | decoratorsOnComputedProperties.types | 38 @x [Symbol.toStringTag]: any; 40 >[Symbol.toStringTag] : any 41 >Symbol.toStringTag : symbol 43 >toStringTag : symbol 116 >void class B { @x ["property"]: any; @x [Symbol.toStringTag]: any; @x ["property2"]: any … 117 >class B { @x ["property"]: any; @x [Symbol.toStringTag]: any; @x ["property2"]: any = 2; … 125 @x [Symbol.toStringTag]: any; 127 >[Symbol.toStringTag] : any 128 >Symbol.toStringTag : symbol 130 >toStringTag : symbol [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | decoratorsOnComputedProperties.ts | 13 @x [Symbol.toStringTag]: any; 30 @x [Symbol.toStringTag]: any; 47 @x [Symbol.toStringTag]: any; 65 @x [Symbol.toStringTag]: any; 83 @x [Symbol.toStringTag]: any; 101 @x [Symbol.toStringTag]: any; 119 @x [Symbol.toStringTag]: any; 138 @x [Symbol.toStringTag]: any; 157 @x [Symbol.toStringTag]: any; 176 @x [Symbol.toStringTag]: any;
|