Skip to content

minifier: mangling with function declared in try block in non-strict mode causes conflict #14316

Description

@kermanx
const x = { value : 1 }
function main() {
  console.log(x.value)
  //          ^ Error: undefined
  //          ^ e
  try {
    function func() {
      //   ^ e
      console.log(1)
    }
    func()
  }
  finally {
  }
}

main()

Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions