Skip to content

Hangs forever on chained functions #136

Closed
@garamond

Description

@garamond

Input file MyComp.js:

export class MyComp extends Component { render(){} }

export function myFun(foo) {
  return foo.bar().baz()
}

Running react-docgen MyComp.js hangs forever and causes CPU load to spike to 100%.

Without chained functions the issue does not appear: After changing to body of myFun to

export function myFun(foo) {
  return foo.bar.baz()
}

the file is processed without issues.

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