mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
test(es/compat): Add execution tests (#6312)
This commit is contained in:
parent
5fafa7b296
commit
0f9d930f73
2
crates/swc/tests/exec/issues-6xxx/.6301/exec.js
Normal file
2
crates/swc/tests/exec/issues-6xxx/.6301/exec.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// input.js
|
||||||
|
try { await; } catch { console.log("caught"); }
|
1
crates/swc/tests/exec/issues-6xxx/.6302/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6302/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
var [...x] = 0;
|
2
crates/swc/tests/exec/issues-6xxx/.6303/exec.js
Normal file
2
crates/swc/tests/exec/issues-6xxx/.6303/exec.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
"use strict";
|
||||||
|
for ({} in [0]);
|
1
crates/swc/tests/exec/issues-6xxx/.6304/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6304/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
let [] = [];
|
1
crates/swc/tests/exec/issues-6xxx/.6305/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6305/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
class x { static { super.x = 0; } }
|
2
crates/swc/tests/exec/issues-6xxx/.6306/exec.js
Normal file
2
crates/swc/tests/exec/issues-6xxx/.6306/exec.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
"use strict";
|
||||||
|
x = {} = null;
|
1
crates/swc/tests/exec/issues-6xxx/.6307/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6307/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
class x { static y = x = 0; }
|
2
crates/swc/tests/exec/issues-6xxx/.6308/exec.js
Normal file
2
crates/swc/tests/exec/issues-6xxx/.6308/exec.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
var x = { x } = 0;
|
||||||
|
console.log(x);
|
1
crates/swc/tests/exec/issues-6xxx/.6309/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6309/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
class x { static x = super.x += super.x += 0; }
|
1
crates/swc/tests/exec/issues-6xxx/.6311/exec.js
Normal file
1
crates/swc/tests/exec/issues-6xxx/.6311/exec.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
switch ( 0 ) { case x : function x ( ) { } }
|
Loading…
Reference in New Issue
Block a user