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

SyntaxError: Unexpected token ')' in sequence elements with function #4109

Closed
bahkostya opened this issue May 28, 2021 · 1 comment · Fixed by #4110
Closed

SyntaxError: Unexpected token ')' in sequence elements with function #4109

bahkostya opened this issue May 28, 2021 · 1 comment · Fixed by #4110

Comments

@bahkostya
Copy link

  • Rollup Version: 2.49.0 and higher
  • Operating System (or Browser): MacOS BigSur 11.4 / Windows 10
  • Node Version (if applicable): 14.16.1
  • Link to reproduction (IMPORTANT, read below): https://replit.com/join/nwqpewuw-bahkostya

Expected Behavior

npx rollup --version & npx rollup -c | node

src/main → stdout...
created stdout in 78ms
PASS

Actual Behavior

npx rollup --version & npx rollup -c | node
rollup v1.31.0

src/main → stdout...
created stdout in 72ms
[stdin]:1
function test(){ console.log("PASS"); }(), 3;
                                        ^

SyntaxError: Unexpected token ')'
    at new Script (vm.js:88:7)
    at createScript (vm.js:261:10)
    at Object.runInThisContext (vm.js:309:10)
    at Object.<anonymous> ([stdin]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at evalScript (internal/process/execution.js:94:25)
    at internal/main/eval_stdin.js:29:5
    at Socket.<anonymous> (internal/process/execution.js:207:5)
    at Socket.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)

Related to #4105

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

Successfully merging a pull request may close this issue.

2 participants