Skip to content

Source maps not mapping close parenthesis #6239

@dsherret

Description

@dsherret

Describe the bug

It seems source maps aren't mapping close parenthesis. Is that expected?

See here how on the function declaration after the parameters it's not mapped and also after the arguments in the call expression.

image

This just recently surfaced in our test suite, but didn't before because previously the semi-colon was mapped, but now it's not (this screenshot is from before. This is no longer mapped):

image

Input code

No response

Config

No response

Playground link

No response

Expected behavior

Should map close parenthesis?

Actual behavior

Doesn't map them.

Version

swc_ecma_transforms v0.198.26

Additional context

https://gist.github.com/dsherret/7418d2096a7fb2d79b9496237d80430a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions