mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
22 lines
207 B
TypeScript
22 lines
207 B
TypeScript
// @target: ES3
|
|
|
|
// error to use accessors in ES3 mode
|
|
|
|
class C {
|
|
get x() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
class D {
|
|
set x(v) {
|
|
}
|
|
}
|
|
|
|
var x = {
|
|
get a() { return 1 }
|
|
}
|
|
|
|
var y = {
|
|
set b(v) { }
|
|
} |