Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to recognize arrow function IIFE #5

Closed
Rongronggg9 opened this issue Nov 22, 2022 · 1 comment
Closed

Unable to recognize arrow function IIFE #5

Rongronggg9 opened this issue Nov 22, 2022 · 1 comment

Comments

@Rongronggg9
Copy link

Rongronggg9 commented Nov 22, 2022

https://developer.mozilla.org/en-US/docs/Glossary/IIFE

(function () {
  let foo = 'bar';
})();

(() => {
  let foo = 'bar';
})();

(async () => {
  let foo = 'bar';
})();
(function(){let a='bar'})();()=>{let a='bar'}();async()=>{let a='bar'}()
Uncaught SyntaxError: unexpected token: '('      debugger eval code:1:45

Should be:

(function(){let a='bar'})();(()=>{let a='bar'})();(async()=>{let a='bar'})()
//                          ^                 ^   ^                      ^
@wilsonzlin
Copy link
Owner

wilsonzlin commented Jan 5, 2023

Thanks for raising, this has been fixed in the latest version 0.4.2, let me know if it works on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants