/third_party/jerryscript/tests/jerry/es2015/ |
D | function-prototype-hasinstance.js | 31 assert (base[Symbol.hasInstance] (obj_base) === true); 32 assert (base[Symbol.hasInstance] (obj_sub) === false); 33 assert (Object[Symbol.hasInstance] (obj_base) === true); 34 assert (Object[Symbol.hasInstance] (obj_sub) === true); 37 assert (sub[Symbol.hasInstance] (obj_base) === false); 38 assert (sub[Symbol.hasInstance] (obj_sub) === true); 50 assert (base[Symbol.hasInstance] (obj_sub_c) === true); 52 assert (sub_c[Symbol.hasInstance] (obj_base) === false); 53 assert (sub_c[Symbol.hasInstance] (obj_sub_c) === true); 54 assert (Object[Symbol.hasInstance] (obj_sub_c) === true); [all …]
|
D | function-prototype-hasinstance-class.js | 34 assert (base[Symbol.hasInstance](obj_base) === true); 35 assert (base[Symbol.hasInstance](obj_sub) === false); 37 assert (sub[Symbol.hasInstance](obj_base) === false); 38 assert (sub[Symbol.hasInstance](obj_sub) === true); 50 assert (base[Symbol.hasInstance](obj_sub_c) === true); 52 assert (sub_c[Symbol.hasInstance](obj_base) === false); 53 assert (sub_c[Symbol.hasInstance](obj_sub_c) === true);
|
D | instanceof-symbol-hasinstance.js | 18 Object.defineProperty (NoParent, Symbol.hasInstance, { 27 Object.defineProperty (NoParent, Symbol.hasInstance, { 38 Object.defineProperty (PositiveNumber, Symbol.hasInstance, { 51 Object.defineProperty (ErrorAlways, Symbol.hasInstance, { 65 Object.defineProperty (NonCallable, Symbol.hasInstance, { value: 11 }); 77 Object.defineProperty (ErrorGenerator, Symbol.hasInstance, {
|
/third_party/typescript/tests/baselines/reference/ |
D | symbolProperty46.types | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : string 7 >Symbol.hasInstance : symbol 9 >hasInstance : symbol 15 set [Symbol.hasInstance](x) { 16 >[Symbol.hasInstance] : string 17 >Symbol.hasInstance : symbol 19 >hasInstance : symbol 24 (new C)[Symbol.hasInstance] = 0; 25 >(new C)[Symbol.hasInstance] = 0 : 0 [all …]
|
D | symbolProperty47.types | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : number 7 >Symbol.hasInstance : symbol 9 >hasInstance : symbol 15 set [Symbol.hasInstance](x: number) { 16 >[Symbol.hasInstance] : number 17 >Symbol.hasInstance : symbol 19 >hasInstance : symbol 24 (new C)[Symbol.hasInstance] = 0; 25 >(new C)[Symbol.hasInstance] = 0 : 0 [all …]
|
D | symbolProperty46.symbols | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty46.ts, 0, 9), Decl(symbolP… 7 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 14 set [Symbol.hasInstance](x) { 15 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty46.ts, 0, 9), Decl(symbolP… 16 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 18 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 23 (new C)[Symbol.hasInstance] = 0; 25 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | symbolProperty47.symbols | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty47.ts, 0, 9), Decl(symbolP… 7 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 14 set [Symbol.hasInstance](x: number) { 15 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty47.ts, 0, 9), Decl(symbolP… 16 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 18 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 23 (new C)[Symbol.hasInstance] = 0; 25 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | symbolProperty44.symbols | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty44.ts, 0, 9)) 7 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 13 get [Symbol.hasInstance]() { 14 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty44.ts, 3, 5)) 15 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 17 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.types | 63 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 64 >{ a: 2, [Symbol.hasInstance](value: any) { return false; }} : { a: number; [Symbol… 70 [Symbol.hasInstance](value: any) { 71 >[Symbol.hasInstance] : (value: any) => boolean 72 >Symbol.hasInstance : any 74 >hasInstance : any 81 o.hasOwnProperty(Symbol.hasInstance); 82 >o.hasOwnProperty(Symbol.hasInstance) : boolean 84 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 86 >Symbol.hasInstance : any [all …]
|
D | modularizeLibrary_TargetES6UsingES6Lib.types | 62 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 63 >{ a: 2, [Symbol.hasInstance](value: any) { return false; }} : { a: number; [Symbol… 69 [Symbol.hasInstance](value: any) { 70 >[Symbol.hasInstance] : (value: any) => boolean 71 >Symbol.hasInstance : symbol 73 >hasInstance : symbol 80 o.hasOwnProperty(Symbol.hasInstance); 81 >o.hasOwnProperty(Symbol.hasInstance) : boolean 83 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 85 >Symbol.hasInstance : symbol [all …]
|
D | symbolProperty46.js | 3 get [Symbol.hasInstance]() { 7 set [Symbol.hasInstance](x) { 11 (new C)[Symbol.hasInstance] = 0; 12 (new C)[Symbol.hasInstance] = ""; 16 get [Symbol.hasInstance]() { 20 set [Symbol.hasInstance](x) { 23 (new C)[Symbol.hasInstance] = 0; 24 (new C)[Symbol.hasInstance] = "";
|
D | symbolProperty47.js | 3 get [Symbol.hasInstance]() { 7 set [Symbol.hasInstance](x: number) { 11 (new C)[Symbol.hasInstance] = 0; 12 (new C)[Symbol.hasInstance] = ""; 16 get [Symbol.hasInstance]() { 20 set [Symbol.hasInstance](x) { 23 (new C)[Symbol.hasInstance] = 0; 24 (new C)[Symbol.hasInstance] = "";
|
D | symbolProperty44.types | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : string 7 >Symbol.hasInstance : symbol 9 >hasInstance : symbol 14 get [Symbol.hasInstance]() { 15 >[Symbol.hasInstance] : string 16 >Symbol.hasInstance : symbol 18 >hasInstance : symbol
|
D | modularizeLibrary_TargetES5UsingES6Lib.types | 107 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 108 >{ a: 2, [Symbol.hasInstance](value: any) { return false; }} : { a: number; [Symbol… 114 [Symbol.hasInstance](value: any) { 115 >[Symbol.hasInstance] : (value: any) => boolean 116 >Symbol.hasInstance : symbol 118 >hasInstance : symbol 125 o.hasOwnProperty(Symbol.hasInstance); 126 >o.hasOwnProperty(Symbol.hasInstance) : boolean 128 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 130 >Symbol.hasInstance : symbol [all …]
|
D | modularizeLibrary_NoErrorDuplicateLibOptions2.types | 107 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 108 >{ a: 2, [Symbol.hasInstance](value: any) { return false; }} : { a: number; [Symbol… 114 [Symbol.hasInstance](value: any) { 115 >[Symbol.hasInstance] : (value: any) => boolean 116 >Symbol.hasInstance : symbol 118 >hasInstance : symbol 125 o.hasOwnProperty(Symbol.hasInstance); 126 >o.hasOwnProperty(Symbol.hasInstance) : boolean 128 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 130 >Symbol.hasInstance : symbol [all …]
|
D | modularizeLibrary_NoErrorDuplicateLibOptions1.types | 107 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 108 >{ a: 2, [Symbol.hasInstance](value: any) { return false; }} : { a: number; [Symbol… 114 [Symbol.hasInstance](value: any) { 115 >[Symbol.hasInstance] : (value: any) => boolean 116 >Symbol.hasInstance : symbol 118 >hasInstance : symbol 125 o.hasOwnProperty(Symbol.hasInstance); 126 >o.hasOwnProperty(Symbol.hasInstance) : boolean 128 >o : { a: number; [Symbol.hasInstance](value: any): boolean; } 130 >Symbol.hasInstance : symbol [all …]
|
D | modularizeLibrary_TargetES6UsingES6Lib.symbols | 57 [Symbol.hasInstance](value: any) { 58 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_TargetES6UsingES6Lib.ts… 59 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 61 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 67 o.hasOwnProperty(Symbol.hasInstance); 71 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 73 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 118 [Symbol.hasInstance](value: any) { 119 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_TargetES6UsingES6Lib.ts… 120 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | symbolProperty44.errors.txt | 1 …ce/es6/Symbols/symbolProperty44.ts(2,9): error TS2300: Duplicate identifier '[Symbol.hasInstance]'. 2 …ce/es6/Symbols/symbolProperty44.ts(5,9): error TS2300: Duplicate identifier '[Symbol.hasInstance]'. 7 get [Symbol.hasInstance]() { 9 !!! error TS2300: Duplicate identifier '[Symbol.hasInstance]'. 12 get [Symbol.hasInstance]() { 14 !!! error TS2300: Duplicate identifier '[Symbol.hasInstance]'.
|
D | symbolProperty45.symbols | 5 get [Symbol.hasInstance]() { 6 >[Symbol.hasInstance] : Symbol(C[Symbol.hasInstance], Decl(symbolProperty45.ts, 0, 9)) 7 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 9 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
D | modularizeLibrary_NoErrorDuplicateLibOptions1.symbols | 92 [Symbol.hasInstance](value: any) { 93 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_NoErrorDuplicateLibOpti… 94 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 96 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 102 o.hasOwnProperty(Symbol.hasInstance); 106 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 108 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 176 [Symbol.hasInstance](value: any) { 177 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_NoErrorDuplicateLibOpti… 178 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | modularizeLibrary_NoErrorDuplicateLibOptions2.symbols | 92 [Symbol.hasInstance](value: any) { 93 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_NoErrorDuplicateLibOpti… 94 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 96 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 102 o.hasOwnProperty(Symbol.hasInstance); 106 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 108 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 176 [Symbol.hasInstance](value: any) { 177 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_NoErrorDuplicateLibOpti… 178 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | modularizeLibrary_TargetES5UsingES6Lib.symbols | 92 [Symbol.hasInstance](value: any) { 93 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_TargetES5UsingES6Lib.ts… 94 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 96 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 102 o.hasOwnProperty(Symbol.hasInstance); 106 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … 108 >hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) 176 [Symbol.hasInstance](value: any) { 177 >[Symbol.hasInstance] : Symbol([Symbol.hasInstance], Decl(modularizeLibrary_TargetES5UsingES6Lib.ts… 178 >Symbol.hasInstance : Symbol(SymbolConstructor.hasInstance, Decl(lib.es2015.symbol.wellknown.d.ts, … [all …]
|
D | modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.js | 26 [Symbol.hasInstance](value: any) { 30 o.hasOwnProperty(Symbol.hasInstance); 52 [Symbol.hasInstance](value: any) { 77 [Symbol.hasInstance](value) { 81 o.hasOwnProperty(Symbol.hasInstance); 97 [Symbol.hasInstance](value) {
|
D | modularizeLibrary_TargetES6UsingES6Lib.js | 25 [Symbol.hasInstance](value: any) { 29 o.hasOwnProperty(Symbol.hasInstance); 51 [Symbol.hasInstance](value: any) { 75 [Symbol.hasInstance](value) { 79 o.hasOwnProperty(Symbol.hasInstance); 95 [Symbol.hasInstance](value) {
|
/third_party/typescript/tests/cases/conformance/es6/Symbols/ |
D | symbolProperty46.ts | 3 get [Symbol.hasInstance]() { 7 set [Symbol.hasInstance](x) { 11 (new C)[Symbol.hasInstance] = 0; 12 (new C)[Symbol.hasInstance] = "";
|