mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
test(es): Add a test for a fixed issue (#4693)
This commit is contained in:
parent
787f14ec77
commit
b93af7ba61
10
crates/swc/tests/fixture/issues-2xxx/2728/input/.swcrc
Normal file
10
crates/swc/tests/fixture/issues-2xxx/2728/input/.swcrc
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"jsc": {
|
||||
"minify": {
|
||||
"compress": true,
|
||||
"mangle": {
|
||||
"topLevel": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
5
crates/swc/tests/fixture/issues-2xxx/2728/input/input.js
Normal file
5
crates/swc/tests/fixture/issues-2xxx/2728/input/input.js
Normal file
@ -0,0 +1,5 @@
|
||||
function fn(bar) {
|
||||
const foo = (64206).toString(16);
|
||||
return eval(bar);
|
||||
}
|
||||
console.log(fn("foo + bar"));
|
@ -0,0 +1,5 @@
|
||||
function fn(bar) {
|
||||
var foo = 64206..toString(16);
|
||||
return eval(bar);
|
||||
}
|
||||
console.log(fn("foo + bar"));
|
Loading…
Reference in New Issue
Block a user