function evaluateShorthandPropertyAssignment({ environment, node }, parent) {
    const identifier = node.name.text;
    const match = getFromLexicalEnvironment(node, environment, identifier);
    if (match == null) {
        throw new UndefinedIdentifierError({ node: node.name });
    }
    parent[identifier] = match.literal;
}
/**
 * Evaluates, or attempts to evaluate, a ShorthandPropertyAssignment, before applying it on the given parent
 */
Evaluates, or attempts to evaluate, a ShorthandPropertyAssignment, before applying it on the given parent
Evaluates or attempts to evaluate a ShorthandPropertyAssignment before applying it on the given parent
function evaluateShorthandPropertyAssignment({ environment, node }, parent) {
    const identifier = node.name.text;
    const match = getFromLexicalEnvironment(node, environment, identifier);
    if (match == null) {
        throw new UndefinedIdentifierError({ node: node.name });
    }
    parent[identifier] = match.literal;
}
function evaluateShorthandPropertyAssignment ( { environment , node } , parent ) { const identifier = node . name . text ; const match = getFromLexicalEnvironment ( node , environment , identifier ) ; if ( match == null ) { throw new UndefinedIdentifierError ( { node : node . name } ) ; } parent [ identifier ] = match . literal ; }
Evaluates, or attempts to evaluate, a ShorthandPropertyAssignment, before applying it on the given parent
Evaluates or attempts to evaluate a ShorthandPropertyAssignment before applying it on the given parent