Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jun 5, 2022
1 parent a665158 commit f0f057d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ func TestJS(t *testing.T) {
//{`function g(){return;var a;a=b}`, `function g(){var a;}`},
//{`function g(){return 5;function f(){}}`, `function g(){return 5;function f(){}}`},
//{`function g(){if(a)return a;else return b;var c;c=d}`, `function g(){var c;return a||b}`},
//{`()=>a()`, ``},

// arrow functions
{`() => {}`, `()=>{}`},
Expand Down

0 comments on commit f0f057d

Please sign in to comment.