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

@swc/wasm-typescript does not throw at some invalid syntax. #9883

Open
marco-ippolito opened this issue Jan 15, 2025 · 0 comments
Open

@swc/wasm-typescript does not throw at some invalid syntax. #9883

marco-ippolito opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@marco-ippolito
Copy link
Contributor

Describe the bug

Given this code, which is invalid syntax:

Input code

interface Foo{};const foo;

Config

{}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.7.1&code=H4sIAAAAAAAAA0srzUsuyczPU0jT0FSo5uIsSi0pLcpTsAmx4%2BLk1KiwUgjRtLWrsOaq5QIAdBqy7yoAAAA%3D&config=H4sIAAAAAAAAA1WPSw7DIAwF9zkF8rrbdtE79BAWdSIifrKJVBTl7iUE0maH3xsz8jooBbNoeKq1PMsQkYX4nEsi2Sf8lARIOxTNJia49XaWvRrRCtVoOxpIyBOluiX3hoMNQajjLXPGmzH%2FC3VwkUnkCu4o%2BsnSVTc0JbjwXmrZDkk50qF%2FwA%2FqsvNjMPLqm4kXGrYvhlQioBQBAAA%3D&strip-types=

SWC Info output

;const foo;

Expected behavior

It should throw an error since the syntax is invalid

Actual behavior

Stripping types.

Version

1.7.1

Additional context

No response

@kdy1 kdy1 added this to the Planned milestone Jan 15, 2025
@kdy1 kdy1 self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants