mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
15 lines
406 B
JavaScript
15 lines
406 B
JavaScript
function _classNameTDZError(name) {
|
|
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
|
|
}
|
|
var tmp = (_classNameTDZError("C"), C).staticProp, tmp1 = (_classNameTDZError("C"), C).staticProp, tmp2 = (_classNameTDZError("C"), C).staticProp;
|
|
class C {
|
|
get [tmp]() {
|
|
return "hello";
|
|
}
|
|
set [tmp1](x) {
|
|
}
|
|
[tmp2]() {
|
|
}
|
|
}
|
|
C.staticProp = 10;
|