Home
last modified time | relevance | path

Searched refs:hasInstance (Results 1 – 25 of 66) sorted by relevance

123

/third_party/jerryscript/tests/jerry/es2015/
Dfunction-prototype-hasinstance.js31 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 …]
Dfunction-prototype-hasinstance-class.js34 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);
Dinstanceof-symbol-hasinstance.js18 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/
DsymbolProperty46.types5 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 …]
DsymbolProperty47.types5 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 …]
DsymbolProperty46.symbols5 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 …]
DsymbolProperty47.symbols5 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 …]
DsymbolProperty44.symbols5 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, --, --))
DmodularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.types63 >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 …]
DmodularizeLibrary_TargetES6UsingES6Lib.types62 >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 …]
DsymbolProperty46.js3 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] = "";
DsymbolProperty47.js3 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] = "";
DsymbolProperty44.types5 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
DmodularizeLibrary_TargetES5UsingES6Lib.types107 >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 …]
DmodularizeLibrary_NoErrorDuplicateLibOptions2.types107 >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 …]
DmodularizeLibrary_NoErrorDuplicateLibOptions1.types107 >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 …]
DmodularizeLibrary_TargetES6UsingES6Lib.symbols57 [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 …]
DsymbolProperty44.errors.txt1 …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]'.
DsymbolProperty45.symbols5 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, --, --))
DmodularizeLibrary_NoErrorDuplicateLibOptions1.symbols92 [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 …]
DmodularizeLibrary_NoErrorDuplicateLibOptions2.symbols92 [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 …]
DmodularizeLibrary_TargetES5UsingES6Lib.symbols92 [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 …]
DmodularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.js26 [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) {
DmodularizeLibrary_TargetES6UsingES6Lib.js25 [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/
DsymbolProperty46.ts3 get [Symbol.hasInstance]() {
7 set [Symbol.hasInstance](x) {
11 (new C)[Symbol.hasInstance] = 0;
12 (new C)[Symbol.hasInstance] = "";

123