Lines Matching full:class
1 Tests for ES6 class name semantics in class statements and expressions
6 Class statement
9 PASS class {} threw exception SyntaxError: Unexpected token {.
10 PASS 'use strict'; class {} threw exception SyntaxError: Unexpected token {.
11 PASS class { constructor() {} } threw exception SyntaxError: Unexpected token {.
12 PASS 'use strict'; class { constructor() {} } threw exception SyntaxError: Unexpected token {.
13 PASS class A { constructor() {} } did not throw exception.
14 PASS 'use strict'; class A { constructor() {} } did not throw exception.
15 PASS class A { constructor() {} }; A.toString() is 'class A { constructor() {} }'
16 PASS 'use strict'; class A { constructor() {} }; A.toString() is 'class A { constructor() {} }'
17 PASS class A { constructor() {} }; (new A) instanceof A is true
18 PASS 'use strict'; class A { constructor() {} }; (new A) instanceof A is true
19 PASS class A { constructor() { this.base = A; } }; (new A).base.toString() is 'class A { constructo…
20 PASS 'use strict'; class A { constructor() { this.base = A; } }; (new A).base.toString() is 'class …
21 PASS class A { constructor() {} }; class B extends A {}; did not throw exception.
22 PASS 'use strict'; class A { constructor() {} }; class B extends A {}; did not throw exception.
23 PASS class A { constructor() {} }; class B extends A { constructor() {} }; B.toString() is 'class B…
24 PASS 'use strict'; class A { constructor() {} }; class B extends A { constructor() {} }; B.toString…
25 PASS class A { constructor() {} }; class B extends A {}; (new B) instanceof A is true
26 PASS 'use strict'; class A { constructor() {} }; class B extends A {}; (new B) instanceof A is true
27 PASS class A { constructor() {} }; class B extends A {}; (new B) instanceof B is true
28 PASS 'use strict'; class A { constructor() {} }; class B extends A {}; (new B) instanceof B is true
29 …SS class A { constructor() {} }; class B extends A { constructor() { super(); this.base = A; this.…
30 …'; class A { constructor() {} }; class B extends A { constructor() { super(); this.base = A; this.…
31 …S class A { constructor() {} }; class B extends A { constructor() { super(); this.base = A; this.d…
32 …; class A { constructor() {} }; class B extends A { constructor() { super(); this.base = A; this.d…
34 Class expression
37 PASS (class {}) did not throw exception.
38 PASS 'use strict'; (class {}) did not throw exception.
39 PASS (class { constructor(){} }) did not throw exception.
40 PASS 'use strict'; (class { constructor(){} }) did not throw exception.
41 PASS typeof (class {}) is "function"
42 PASS 'use strict'; typeof (class {}) is "function"
43 PASS (class A {}) did not throw exception.
44 PASS 'use strict'; (class A {}) did not throw exception.
45 PASS typeof (class A {}) is "function"
46 PASS 'use strict'; typeof (class A {}) is "function"
47 PASS (class A {}); A threw exception ReferenceError: A is not defined.
48 PASS 'use strict'; (class A {}); A threw exception ReferenceError: A is not defined.
49 PASS new (class A {}) did not throw exception.
50 PASS 'use strict'; new (class A {}) did not throw exception.
51 PASS typeof (new (class A {})) is "object"
52 PASS 'use strict'; typeof (new (class A {})) is "object"
53 PASS (new (class A { constructor() { this.base = A; } })).base did not throw exception.
54 PASS 'use strict'; (new (class A { constructor() { this.base = A; } })).base did not throw exceptio…
55 PASS (new (class A { constructor() { this.base = A; } })).base.toString() is "class A { constructor…
56 PASS 'use strict'; (new (class A { constructor() { this.base = A; } })).base.toString() is "class A…
57 PASS class A {}; (class B extends A {}) did not throw exception.
58 PASS 'use strict'; class A {}; (class B extends A {}) did not throw exception.
59 PASS class A {}; (class B extends A {}); B threw exception ReferenceError: B is not defined.
60 PASS 'use strict'; class A {}; (class B extends A {}); B threw exception ReferenceError: B is not d…
61 PASS class A {}; new (class B extends A {}) did not throw exception.
62 PASS 'use strict'; class A {}; new (class B extends A {}) did not throw exception.
63 PASS class A {}; new (class B extends A { constructor() { super(); this.base = A; this.derived = B;…
64 PASS 'use strict'; class A {}; new (class B extends A { constructor() { super(); this.base = A; thi…
65 PASS class A {}; (new (class B extends A { constructor() { super(); this.base = A; this.derived = B…
66 PASS 'use strict'; class A {}; (new (class B extends A { constructor() { super(); this.base = A; th…
67 …ASS class A { constructor() {} }; (new (class B extends A { constructor() { super(); this.base = A…
68 …t'; class A { constructor() {} }; (new (class B extends A { constructor() { super(); this.base = A…
69 …S class A { constructor() {} }; (new (class B extends A { constructor() { super(); this.base = A; …
70 …; class A { constructor() {} }; (new (class B extends A { constructor() { super(); this.base = A; …
72 Class expression assignment to variable
75 PASS var VarA = class {} did not throw exception.
76 PASS 'use strict'; var VarA = class {} did not throw exception.
77 PASS var VarA = class { constructor() {} }; VarA.toString() is 'class { constructor() {} }'
78 PASS 'use strict'; var VarA = class { constructor() {} }; VarA.toString() is 'class { constructor()…
81 PASS var VarA = class A { constructor() {} } did not throw exception.
82 PASS 'use strict'; var VarA = class A { constructor() {} } did not throw exception.
83 PASS var VarA = class A { constructor() {} }; VarA.toString() is 'class A { constructor() {} }'
84 PASS 'use strict'; var VarA = class A { constructor() {} }; VarA.toString() is 'class A { construct…
85 PASS var VarA = class A { constructor() {} }; A.toString() threw exception ReferenceError: A is not…
86 PASS 'use strict'; var VarA = class A { constructor() {} }; A.toString() threw exception ReferenceE…
87 PASS var VarA = class A { constructor() {} }; (new VarA) instanceof VarA is true
88 PASS 'use strict'; var VarA = class A { constructor() {} }; (new VarA) instanceof VarA is true
89 PASS var VarA = class A { constructor() { this.base = A; } }; (new VarA).base.toString() is 'class …
90 PASS 'use strict'; var VarA = class A { constructor() { this.base = A; } }; (new VarA).base.toStrin…
91 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() {} };…
92 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { const…
93 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() {} };…
94 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { const…
95 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() {} };…
96 …e strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor(…
97 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { }; (new VarB) insta…
98 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { }; (n…
99 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { }; (new VarB) insta…
100 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { }; (n…
101 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() { sup…
102 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { const…
103 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() { sup…
104 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { const…
105 PASS var VarA = class A { constructor() {} }; var VarB = class B extends VarA { constructor() { sup…
106 PASS 'use strict'; var VarA = class A { constructor() {} }; var VarB = class B extends VarA { const…
108 Class statement binding in other circumstances
111 PASS var result = A; class A {}; result threw exception ReferenceError: A is not defined.
112 PASS 'use strict'; var result = A; class A {}; result threw exception ReferenceError: A is not defi…
113 PASS class A { constructor() { A = 1; } }; new A threw exception TypeError: Assignment to constant …
114 PASS 'use strict'; class A { constructor() { A = 1; } }; new A threw exception TypeError: Assignmen…
115 PASS class A { constructor() { } }; A = 1; A is 1
116 PASS 'use strict'; class A { constructor() { } }; A = 1; A is 1
117 PASS class A {}; var result = A; result did not throw exception.
118 PASS 'use strict'; class A {}; var result = A; result did not throw exception.
121 PASS eval('class Bar { constructor() {} }; Bar.toString()') is 'class Bar { constructor() {} }'
122 PASS 'use strict'; eval('class Bar { constructor() {} }'); Bar.toString() threw exception Reference…