function evaluateCaseClause({ node, evaluate, environment, statementTraversalStack }, switchExpression) {
    const expressionResult = evaluate.expression(node.expression, environment, statementTraversalStack);
    // Stop immediately if the expression doesn't match the switch expression
    if (expressionResult !== switchExpression)
        return;
    for (const statement of node.statements) {
        evaluate.statement(statement, environment);
        // Check if a 'break', 'continue', or 'return' statement has been encountered, break the block
        if (pathInLexicalEnvironmentEquals(node, environment, true, BREAK_SYMBOL, CONTINUE_SYMBOL, RETURN_SYMBOL)) {
            break;
        }
    }
}
/**
 * Evaluates, or attempts to evaluate, a CaseClause, based on a switch expression
 */
Evaluates, or attempts to evaluate, a CaseClause, based on a switch expression
Evaluates or attempts to evaluate a CaseClause based on a switch expression
function evaluateCaseClause({ node, evaluate, environment, statementTraversalStack }, switchExpression) {
    const expressionResult = evaluate.expression(node.expression, environment, statementTraversalStack);
    if (expressionResult !== switchExpression)
        return;
    for (const statement of node.statements) {
        evaluate.statement(statement, environment);
        if (pathInLexicalEnvironmentEquals(node, environment, true, BREAK_SYMBOL, CONTINUE_SYMBOL, RETURN_SYMBOL)) {
            break;
        }
    }
}
function evaluateCaseClause ( { node , evaluate , environment , statementTraversalStack } , switchExpression ) { const expressionResult = evaluate . expression ( node . expression , environment , statementTraversalStack ) ; if ( expressionResult !== switchExpression ) return ; for ( const statement of node . statements ) { evaluate . statement ( statement , environment ) ; if ( pathInLexicalEnvironmentEquals ( node , environment , true , BREAK_SYMBOL , CONTINUE_SYMBOL , RETURN_SYMBOL ) ) { break ; } } }
Evaluates, or attempts to evaluate, a CaseClause, based on a switch expression
Evaluates or attempts to evaluate a CaseClause based on a switch expression
// Stop immediately if the expression doesn't match the switch expression // Check if a 'break', 'continue', or 'return' statement has been encountered, break the block