pull/15820/head
Rich Harris 4 months ago
parent 4653f54010
commit 23f269be7c

@ -92,7 +92,7 @@ export function ClassBody(node, context) {
// Replace parts of the class body // Replace parts of the class body
for (const definition of node.body) { for (const definition of node.body) {
if (definition.type === 'MethodDefinition' || definition.type === 'StaticBlock') { if (definition.type !== 'PropertyDefinition') {
body.push( body.push(
/** @type {MethodDefinition | StaticBlock} */ (context.visit(definition, child_state)) /** @type {MethodDefinition | StaticBlock} */ (context.visit(definition, child_state))
); );

@ -89,7 +89,7 @@ export function ClassBody(node, context) {
// Replace parts of the class body // Replace parts of the class body
for (const definition of node.body) { for (const definition of node.body) {
if (definition.type === 'MethodDefinition' || definition.type === 'StaticBlock') { if (definition.type !== 'PropertyDefinition') {
body.push( body.push(
/** @type {MethodDefinition | StaticBlock} */ (context.visit(definition, child_state)) /** @type {MethodDefinition | StaticBlock} */ (context.visit(definition, child_state))
); );

Loading…
Cancel
Save