mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
28 lines
446 B
JavaScript
28 lines
446 B
JavaScript
var _key, _key1;
|
|
// @target: es5, esnext
|
|
// @useDefineForClassFields: true
|
|
var x = "p";
|
|
class A {
|
|
m() {
|
|
}
|
|
constructor(y){
|
|
this.y = y;
|
|
this.a = this.y;
|
|
this[_key] = 13;
|
|
this[_key1] = 14;
|
|
this.z = this.y;
|
|
}
|
|
}
|
|
_key = "computed";
|
|
_key1 = x;
|
|
class B {
|
|
}
|
|
class C extends B {
|
|
constructor(ka){
|
|
super();
|
|
this.ka = ka;
|
|
this.z = this.ka;
|
|
this.ki = this.ka;
|
|
}
|
|
}
|