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

dropped sequence elements leads to SyntaxError: Function statements require a function name #4105

Closed
kzc opened this issue May 27, 2021 · 0 comments · Fixed by #4110
Closed

Comments

@kzc
Copy link
Contributor

kzc commented May 27, 2021

  • Rollup Version: rollup v2.50.2
  • Operating System (or Browser): n/a
  • Node Version (if applicable): n/a

Repro

$ cat seqfnexpr.js 
1, 2, function(){ console.log("PASS"); }(), 3;

Expected Behavior

$ cat seqfnexpr.js | node
PASS

Actual Behavior

$ cat seqfnexpr.js | rollup --silent | node
[stdin]:1
function(){ console.log("PASS"); }();
^^^^^^^^

SyntaxError: Function statements require a function name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants