function evaluateBigIntLiteral({ node, environment }) {
    // Use BigInt from the Realm instead of the executing context such that instanceof checks won't fail, etc.
    const _BigInt = getFromLexicalEnvironment(node, environment, "BigInt").literal;
    // BigInt allows taking in strings, but they must appear as BigInt literals (e.g. "2n" is not allowed, but "2" is)
    return _BigInt(node.text.endsWith("n") ? node.text.slice(0, -1) : node.text);
}
/**
 * Evaluates, or attempts to evaluate, a BigIntLiteral
 */
Evaluates, or attempts to evaluate, a BigIntLiteral
Evaluates or attempts to evaluate a BigIntLiteral
function evaluateBigIntLiteral({ node, environment }) {
    const _BigInt = getFromLexicalEnvironment(node, environment, "BigInt").literal;
    return _BigInt(node.text.endsWith("n") ? node.text.slice(0, -1) : node.text);
}
function evaluateBigIntLiteral ( { node , environment } ) { const _BigInt = getFromLexicalEnvironment ( node , environment , "BigInt" ) . literal ; return _BigInt ( node . text . endsWith ( "n" ) ? node . text . slice ( 0 , - 1 ) : node . text ) ; }
Evaluates, or attempts to evaluate, a BigIntLiteral
Evaluates or attempts to evaluate a BigIntLiteral
// Use BigInt from the Realm instead of the executing context such that instanceof checks won't fail, etc. // BigInt allows taking in strings, but they must appear as BigInt literals (e.g. "2n" is not allowed, but "2" is)