pull/16780/head
S. Elliott Johnson 4 weeks ago
parent e3e92792a4
commit d26fb1f89e

@ -18,9 +18,7 @@ export function IfBlock(node, context) {
consequent.body.unshift(b.stmt(b.call(b.id('$$payload.push'), block_open)));
alternate.body.unshift(
b.stmt(b.call(b.id('$$payload.push'), block_open_else))
);
alternate.body.unshift(b.stmt(b.call(b.id('$$payload.push'), block_open_else)));
/** @type {Statement} */
let statement = b.if(test, consequent, alternate);

@ -1,11 +1,5 @@
import type { AST, Binding, StateField } from '#compiler';
import type {
CallExpression,
ClassBody,
Identifier,
LabeledStatement,
Program
} from 'estree';
import type { CallExpression, ClassBody, Identifier, LabeledStatement, Program } from 'estree';
import type { Scope, ScopeRoot } from './scope.js';
export interface Js {

Loading…
Cancel
Save