mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
Don't transform `super` in static property initializers if it's nested in another method, so is a *different* `super`.
```js
class C {
static prop = () => {
const object = {
method() {
// `super` here refers to prototype of `object`, not class `C`
return super.foo;
}
};
};
}
```
|
||
|---|---|---|
| .. | ||
| babel.snap.md | ||
| babel_exec.snap.md | ||
| oxc.snap.md | ||
| oxc_exec.snap.md | ||