Static private field references leak outside class body causing SyntaxError
Static private field references leak outside class body causing SyntaxError: a task in LegoFlow-SWE (Harbor dataset). When a class uses static private fields and those fields are referenced in static initializers, esbuild generates invalid JavaScript output. The generated code moves the private…
The task
When a class uses static private fields and those fields are referenced in static initializers, esbuild generates invalid JavaScript output. The generated code moves the private member access outside the class body, where the private name is not in scope. This results in a `SyntaxError` at runtime.
Part of Lego-X/LegoFlow-SWE.