| 1 |
"use strict"; |
| 2 |
class Hello { |
| 3 |
toString() { |
| 4 |
return 'hello'; |
| 5 |
} |
| 6 |
} |
| 7 |
|
| 8 |
class Outer extends Hello { |
| 9 |
constructor() { |
| 10 |
super(); |
| 11 |
class Inner { |
| 12 |
accessor [super.toString()] = 'hello'; |
| 13 |
} |
| 14 |
|
| 15 |
return new Inner(); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
expect(new Outer().hello).toBe('hello'); |