mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
15 lines
238 B
JavaScript
15 lines
238 B
JavaScript
var obj = {
|
|
Base: class {
|
|
constructor() {
|
|
this.id = "PASS";
|
|
}
|
|
},
|
|
};
|
|
obj.Derived = class extends obj.Base {
|
|
constructor() {
|
|
super();
|
|
console.log(this.id);
|
|
}
|
|
};
|
|
new obj.Derived();
|