-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
💻
- Would you like to work on a fix?
How are you using Babel?
Programmatic API (babel.transform, babel.parse)
Input code
class C extends class {
static x = "base"
static concat(y, z) { return [this.x, y, z].join(" "); }
} {
static x = "derived"
static concat(y, z) { return [this.x, y, z].join("_"); }
static {
console.log(super.concat(?, "invoked")("is"))
}
}Configuration file name
No response
Configuration
{
"filename": "repl.js",
"plugins": [
[
"@babel/plugin-proposal-partial-application@7.27.1",
{}
]
],
"sourceType": "module"
}Current and expected behavior
Current: The transpiled output throws syntax error "invalid use of keyword 'super'"
Expected: The input is valid and it should log "derived is invoked" to the console.
Environment
REPL
Possible solution
No response
Additional context
No response
Reactions are currently unavailable