function evaluateArrayLiteralExpression({ node, environment, evaluate, typescript, statementTraversalStack }) {
    // Get the Array constructor from the realm - not that of the executing context. Otherwise, instanceof checks would fail
    const arrayCtor = getFromLexicalEnvironment(node, environment, "Array").literal;
    const value = arrayCtor.of();
    for (const element of node.elements) {
        const nextValue = evaluate.expression(element, environment, statementTraversalStack);
        if (typescript.isSpreadElement(element) && isIterable(nextValue)) {
            value.push(...nextValue);
        }
        else {
            value.push(nextValue);
        }
    }
    return value;
}
/**
 * Evaluates, or attempts to evaluate, a ArrayLiteralExpression
 */
Evaluates, or attempts to evaluate, a ArrayLiteralExpression
Evaluates or attempts to evaluate a ArrayLiteralExpression
function evaluateArrayLiteralExpression({ node, environment, evaluate, typescript, statementTraversalStack }) {
    const arrayCtor = getFromLexicalEnvironment(node, environment, "Array").literal;
    const value = arrayCtor.of();
    for (const element of node.elements) {
        const nextValue = evaluate.expression(element, environment, statementTraversalStack);
        if (typescript.isSpreadElement(element) && isIterable(nextValue)) {
            value.push(...nextValue);
        }
        else {
            value.push(nextValue);
        }
    }
    return value;
}
function evaluateArrayLiteralExpression ( { node , environment , evaluate , typescript , statementTraversalStack } ) { const arrayCtor = getFromLexicalEnvironment ( node , environment , "Array" ) . literal ; const value = arrayCtor . of ( ) ; for ( const element of node . elements ) { const nextValue = evaluate . expression ( element , environment , statementTraversalStack ) ; if ( typescript . isSpreadElement ( element ) && isIterable ( nextValue ) ) { value . push ( ... nextValue ) ; } else { value . push ( nextValue ) ; } } return value ; }
Evaluates, or attempts to evaluate, a ArrayLiteralExpression
Evaluates or attempts to evaluate a ArrayLiteralExpression
// Get the Array constructor from the realm - not that of the executing context. Otherwise, instanceof checks would fail