fix(es/codegen): Mark bigint as an item starting with number (#5207)

This commit is contained in:
Donny/강동윤 2022-07-14 19:16:05 +09:00 committed by GitHub
parent 31bbf2ddbb
commit 387d5e41db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": false
},
"target": "es2022",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": true,
"isModule": true
}

View File

@ -0,0 +1,3 @@
function zero() {
return 0n
}

View File

@ -0,0 +1 @@
function zero(){return 0n}

View File

@ -74,6 +74,7 @@ impl StartsWithAlphaNum for Expr {
| Expr::Lit(Lit::Bool(_))
| Expr::Lit(Lit::Num(_))
| Expr::Lit(Lit::Null(_))
| Expr::Lit(Lit::BigInt(_))
| Expr::Await(_)
| Expr::Fn(_)
| Expr::Class(_)