Skip to content

Babel-minify throws cannot set property inList of [object Object] which has only a getter #10654

@JLHwung

Description

@JLHwung

Bug Report

Current Behavior
Babel-minify will throw on @babel/traverse 7.7

Input Code

Expected behavior/code
It should not throw

Environment

  • Babel version(s): 7.7.0
  • How you are using Babel: REPL

Possible Solution
Add a setter of inList which will set listKey to null when false is passed.

** Additional Context **
This regression was introduced in #10480.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions