Skip to content

Function parameters without declared types will result in an error: Invalid value used as weak map key #2272

Open
@Frezc

Description

@Frezc

minimal reproduction: remove parameter type in test case

export const myFunction = (paramWithDefault: string = "something") => {

Image

run case
Image

i found parameter node.type is undefined in this case

Image

maybe we should get type by SymbolObject here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions