mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
20 lines
271 B
JavaScript
20 lines
271 B
JavaScript
"use strict";
|
|
class Hello {
|
|
toString() {
|
|
return 'hello';
|
|
}
|
|
}
|
|
|
|
class Outer extends Hello {
|
|
constructor() {
|
|
super();
|
|
class Inner {
|
|
accessor [super.toString()] = 'hello';
|
|
}
|
|
|
|
return new Inner();
|
|
}
|
|
}
|
|
|
|
expect(new Outer().hello).toBe('hello');
|