test(es): Add a test for a fixed issue (#4693)

This commit is contained in:
Donny/강동윤 2022-05-18 14:34:05 +09:00 committed by GitHub
parent 787f14ec77
commit b93af7ba61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
{
"jsc": {
"minify": {
"compress": true,
"mangle": {
"topLevel": true
}
}
}
}

View File

@ -0,0 +1,5 @@
function fn(bar) {
const foo = (64206).toString(16);
return eval(bar);
}
console.log(fn("foo + bar"));

View File

@ -0,0 +1,5 @@
function fn(bar) {
var foo = 64206..toString(16);
return eval(bar);
}
console.log(fn("foo + bar"));