| Tests for ES6 arrow function, access to the super property in arrow function | |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | |
| PASS (new B()).getValueParentFunction() is expectedValue | |
| PASS (new C(false)).value is expectedValue | |
| PASS (new C(true)) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS E.getParentStaticValue() is expectedValue | |
| PASS f.prop is expectedValue + "-" + expectedValue | |
| PASS f.prop is expectedValue + "-" + "new-value" | |
| PASS (new F()).getParentValue() is expectedValue | |
| PASS (new F()).genGetParentValue().next().value is expectedValue | |
| PASS (new F()).genGetParentValueDeepArrow().next().value is expectedValue | |
| PASS (new class extends A { constructor() { ((a = super(), b = super.getValue())=>{ this.id = b; })() } }).id is expectedValue | |
| PASS (new class extends A { constructor() { ((a = super(), b = new.target)=>{ this.newTarget = b; })(); expectedNewTarget = new.target;} }).newTarget is expectedNewTarget | |
| PASS (new class extends A { constructor() { ((a = super.getValue())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends A { constructor() { ((a = super.getValue(), b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = super.prop)=>{ return a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = super.prop, b=super())=>{ return a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = (super.prop = "value"))=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = (super.prop = "value"), b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = super.genGetParentValue().next().value)=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS (new class extends F { constructor() { ((a = super.genGetParentValue().next().value, b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. | |
| PASS successfullyParsed is true | |
| TEST COMPLETE | |