-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Describe the bug
class expression + static property + side effect initializer has incorrect output. class declaration is fine.
Input code
class D {
static #_ = this.FOO = {
};
}
(class D {
static #_ = this.FOO = {
};
});Config
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
no change
Actual behavior
class D {
static #_ = this.FOO = {};
}
this.FOO = {};
Version
1.13.3
Additional context
Discovered in
CPunisher