We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c067e commit fe48e32Copy full SHA for fe48e32
escodegen.js
@@ -2348,6 +2348,11 @@
2348
return '/' + expr.regex.pattern + '/' + expr.regex.flags;
2349
}
2350
2351
+ // BigInt, eg: 1n
2352
+ if (typeof expr.bigint === 'string' && expr.raw) {
2353
+ return expr.raw;
2354
+ }
2355
+
2356
if (expr.value === null) {
2357
return 'null';
2358
@@ -2356,11 +2361,6 @@
2361
return escapeString(expr.value);
2362
2363
2359
- // BigInt, eg: 1n
2360
- if (typeof expr.bigint === 'string' && expr.raw) {
- return expr.raw;
- }
-
2364
if (typeof expr.value === 'number') {
2365
// Has Numeric Separator
2366
if (expr.raw && expr.raw.indexOf('_') !== -1) {
0 commit comments