mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
25 lines
320 B
JavaScript
25 lines
320 B
JavaScript
"use strict";
|
|
class Hello {
|
|
constructor() {
|
|
return {
|
|
toString() {
|
|
return 'hello';
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
class Outer extends Hello {
|
|
constructor() {
|
|
const Inner = {
|
|
[super()]() {
|
|
return 'hello';
|
|
},
|
|
};
|
|
|
|
return Inner;
|
|
}
|
|
}
|
|
|
|
expect(new Outer().hello()).toBe('hello');
|