-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: unexpected asi generation with sequence expression
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const fn = (num) => { | ||
return num; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { fn } from "./a" | ||
|
||
function d() {} | ||
|
||
var num = 1 | ||
d(), fn(); | ||
|
||
export const b = 2 | ||
d(), fn(); | ||
|
||
export default (function Foo() {}) | ||
d(), fn(); | ||
|
||
export const c = 3 | ||
function foo() { | ||
d(), fn(); | ||
} | ||
|
||
it("should work", function() { | ||
expect(fn(num)).toBe(1); | ||
}); |