diff --git a/escodegen.js b/escodegen.js index 54e7cfab..b7a15130 100644 --- a/escodegen.js +++ b/escodegen.js @@ -2312,6 +2312,11 @@ return 'null'; } + // BigInt, eg: 1n + if (typeof expr.bigint === 'string') { + return expr.raw; + } + if (typeof expr.value === 'string') { return escapeString(expr.value); }