@@ -1993,7 +1993,7 @@ func (ctx *lowerClassContext) insertInitializersIntoConstructor(p *parser, class
1993
1993
if ctx .decoratorCallInstanceMethodExtraInitializers {
1994
1994
decoratorInstanceMethodExtraInitializers = p .callRuntime (ctx .classLoc , "__runInitializers" , []js_ast.Expr {
1995
1995
{Loc : ctx .classLoc , Data : & js_ast.EIdentifier {Ref : ctx .decoratorContextRef }},
1996
- {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : 5 }},
1996
+ {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : ( 2 << 1 ) | 1 }},
1997
1997
{Loc : ctx .classLoc , Data : js_ast .EThisShared },
1998
1998
})
1999
1999
p .recordUsage (ctx .decoratorContextRef )
@@ -2183,7 +2183,7 @@ func (ctx *lowerClassContext) finishAndGenerateCode(p *parser, result visitClass
2183
2183
if ctx .decoratorCallStaticMethodExtraInitializers {
2184
2184
suffixExprs = append (suffixExprs , p .callRuntime (ctx .classLoc , "__runInitializers" , []js_ast.Expr {
2185
2185
{Loc : ctx .classLoc , Data : & js_ast.EIdentifier {Ref : ctx .decoratorContextRef }},
2186
- {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : 3 }},
2186
+ {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : ( 1 << 1 ) | 1 }},
2187
2187
ctx .nameFunc (),
2188
2188
}))
2189
2189
p .recordUsage (ctx .decoratorContextRef )
@@ -2201,7 +2201,7 @@ func (ctx *lowerClassContext) finishAndGenerateCode(p *parser, result visitClass
2201
2201
if decorateClassExpr .Data != nil {
2202
2202
suffixExprs = append (suffixExprs , p .callRuntime (ctx .classLoc , "__runInitializers" , []js_ast.Expr {
2203
2203
{Loc : ctx .classLoc , Data : & js_ast.EIdentifier {Ref : ctx .decoratorContextRef }},
2204
- {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : 1 }},
2204
+ {Loc : ctx .classLoc , Data : & js_ast.ENumber {Value : ( 0 << 1 ) | 1 }},
2205
2205
ctx .nameFunc (),
2206
2206
}))
2207
2207
p .recordUsage (ctx .decoratorContextRef )
0 commit comments