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

JavaScript parsing error: Illegal 'use strict' directive in function with non-simple parameter list. with node-sqlite3-wasm #8616

Closed
vagusX opened this issue Feb 7, 2024 · 1 comment · Fixed by #8617
Assignees
Labels
Milestone

Comments

@vagusX
Copy link

vagusX commented Feb 7, 2024

Describe the bug

paste the code from https://unpkg.com/browse/[email protected]/dist/node-sqlite3-wasm.js

into swc playground

got this error:

image

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA7U9a1fbSLLf8yuMzqxHCsKxzSPEjsghxMywQyBrzGRmWR%2FH2DJoYkseSYYwRv%2F9VlU%2F1N2SILt39%2BQES1XV1dXV1dXVT92N49rHaLqa%2BzWvZttOzTuorV%2FUancAHyWTOFimH4IYcOnD0o9mtWk0WS38MK1teF7tx1U49WdB6E9%2FrNXrEteYrOIYfi8oee1dBaKRxJNapyZ5dCHbYFazeU6j0SyY%2B%2BF44Zt5Oapkj4%2BeQoo8Yj9dxWHNfjFbhZM0iEJ7QQU8jG%2BgHOvMgQK%2BuJPl9iS2i8DYH08fPsXRIkj8vp9E8zvf1WF%2F%2BJO0y9JeWYSyhl7o39c4hW3HMh3SOt7BuoSrx6m6Re4eS5g5XWuV%2BLUkjYNJanUnUZiktZOzwXZ79PHkzNtqt3Ze7%2Bxv7%2B3s67jD3zyJes1RZ5enp16Tv1z84%2FRk0Bud%2F2JC%2BuefvVbTAH44P%2BsBtKVDIa%2FeT72%2BZ4CPT88PB15bBw56vw28bR32%2FvT8vbejw0jIXR12OTjeNzMZ9A%2FPLk56ZwNvy8B86A16fVDOycXg5MhrN0E1cz%2Btpf5iyQmTP%2BdB6m9764xXYiMK%2B6swDRb%2BSRikwXge%2FOVPPRurDZN5STqefD2cz6OJveNwJndeuJrP%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B9fy2HW68oFZX2m%2BRhm0C%2FZNp50sni27yoLd%2FsHaBrtuS4BAAA%3D

SWC Info output

No response

Expected behavior

Work expected as babel repl

Actual behavior

No response

Version

1.3.100

Additional context

I see that https://github.com/swc-project/swc/pull/3278/files#diff-569a1e82f9f711c8951ae1d7da5ef327d1075f6f35e940c9f06faf8fef04c981 throw this error

No response

@vagusX vagusX added the C-bug label Feb 7, 2024
@kdy1 kdy1 self-assigned this Feb 7, 2024
@kdy1 kdy1 added this to the Planned milestone Feb 7, 2024
@kdy1 kdy1 closed this as completed in #8617 Feb 7, 2024
kdy1 added a commit that referenced this issue Feb 7, 2024
**Description:**

Directives should be at the start of the file, and this PR changes the parser to match only at the start of a file.

**Related issue:**

 - Closes #8616.
@kdy1 kdy1 modified the milestones: Planned, v1.4.1 Feb 13, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Mar 14, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants