function evaluateConditionalExpression({ node, environment, evaluate, statementTraversalStack }) {
    const conditionValue = evaluate.expression(node.condition, environment, statementTraversalStack);
    // We have to perform a loose boolean expression here to conform with actual spec behavior
    // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
    if (conditionValue) {
        // Proceed with the truthy branch
        return evaluate.expression(node.whenTrue, environment, statementTraversalStack);
    }
    // Proceed with the falsy branch
    return evaluate.expression(node.whenFalse, environment, statementTraversalStack);
}
/**
 * Evaluates, or attempts to evaluate, a ConditionalExpression
 */
Evaluates, or attempts to evaluate, a ConditionalExpression
Evaluates or attempts to evaluate a ConditionalExpression
function evaluateConditionalExpression({ node, environment, evaluate, statementTraversalStack }) {
    const conditionValue = evaluate.expression(node.condition, environment, statementTraversalStack);
    if (conditionValue) {
        return evaluate.expression(node.whenTrue, environment, statementTraversalStack);
    }
    return evaluate.expression(node.whenFalse, environment, statementTraversalStack);
}
function evaluateConditionalExpression ( { node , environment , evaluate , statementTraversalStack } ) { const conditionValue = evaluate . expression ( node . condition , environment , statementTraversalStack ) ; if ( conditionValue ) { return evaluate . expression ( node . whenTrue , environment , statementTraversalStack ) ; } return evaluate . expression ( node . whenFalse , environment , statementTraversalStack ) ; }
Evaluates, or attempts to evaluate, a ConditionalExpression
Evaluates or attempts to evaluate a ConditionalExpression
// We have to perform a loose boolean expression here to conform with actual spec behavior // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions // Proceed with the truthy branch // Proceed with the falsy branch