Lines Matching refs:new

6 PASS (new Base) instanceof Base is true
7 PASS (new Derived) instanceof Derived is true
8 PASS (new Derived).callBaseMethod() is baseMethodValue
9 PASS x = (new Derived).callBaseMethod; x() is baseMethodValue
10 PASS (new Derived).callBaseMethodInGetter is baseMethodValue
11 PASS (new Derived).callBaseMethodInSetter = 1; valueInSetter is baseMethodValue
12 PASS (new Derived).baseMethodInGetterSetter is (new Base).baseMethod
13 PASS (new Derived).baseMethodInGetterSetter = 1; valueInSetter is (new Base).baseMethod
15 PASS (new SecondDerived).chainMethod() is ["base", "derived", "secondDerived"]
19 PASS x = class extends Base { constructor() { super(); } method() { return new super } } threw exce…
21 PASS (new x).method1() threw exception ReferenceError: Unsupported reference to 'super'.
22 PASS (new x).method2() threw exception ReferenceError: Unsupported reference to 'super'.
23 PASS new (class { constructor() { return undefined; } }) instanceof Object is true
24 PASS new (class { constructor() { return 1; } }) instanceof Object is true
25 PASS new (class extends Base { constructor() { return undefined } }) threw exception ReferenceError…
26 PASS new (class extends Base { constructor() { super(); return undefined } }) instanceof Object is …
27 PASS x = { }; new (class extends Base { constructor() { return x } }); is x
29 PASS new (class extends Base { constructor() { } }) threw exception ReferenceError: this is not def…
30 PASS new (class extends Base { constructor() { return 1; } }) threw exception TypeError: Derived co…
31 PASS new (class extends null { constructor() { return undefined } }) threw exception ReferenceError…
32 PASS new (class extends null { constructor() { super(); return undefined } }) threw exception TypeE…
33 PASS x = { }; new (class extends null { constructor() { return x } }); is x
35 PASS new (class extends null { constructor() { } }) threw exception ReferenceError: this is not def…
36 PASS new (class extends null { constructor() { return 1; } }) threw exception TypeError: Derived co…
37 PASS new (class extends null { constructor() { super() } }) threw exception TypeError: super is not…
38 PASS new (class { constructor() { super() } }) threw exception SyntaxError: 'super' keyword unexpec…
40 PASS new (class extends Object { constructor() { function x() { super() } } }) threw exception Synt…
41 PASS new (class extends Object { constructor() { function x() { super.method } } }) threw exception…