-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Panic on parsing TypeScript syntax #2198
Comments
Merged
@kitsonk Is this valid syntax? If so, the AST definition of Edit: |
kdy1
added a commit
to kdy1/swc
that referenced
this issue
Sep 9, 2021
kdy1
added a commit
that referenced
this issue
Sep 9, 2021
swc_ecma_parser: - Don't panic on `typeof import(T)`. (#2198) - Fix parsing of ternary. (#2196) swc_ecma_transforms_base: - `fixer`: Handle unary in lhs of an exponentation expression. (#2191) swc_ecma_transforms_compat: - Use variable for `this` in arrow expressions. (#2212) swc_ecma_visit: - Add a trait `InjectVars`. node_swc: - Increease recursion limit while deserializing. (#2223)
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
The following code will cause a panic when being parsed. It isn't valid, but it should parse and allow diagnostics to be returned.
Input code
Expected behavior
No panic.
Version
swc_parser 0.66
Additional context
Ref: denoland/deno#11898
The text was updated successfully, but these errors were encountered: