### How are you using Babel? @babel/cli ### Input code ```js var fn; (fn) = function () {}; var name = fn.name ``` `name` should have the value `"fn"` ### Configuration file name _No response_ ### Configuration https://babeljs.io/repl/#?browsers=%20Chrome%20%3E%3D%2067%2C%20Firefox%20%3E%3D%2063%2C%20Edge%20%3E%3D%2017%2C%20Opera%20%3E%3D%2057%2C%20Safari%20%3E%3D%2011.1%0A&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=DYUwLgBAZgdg3AKABSwJQQLzQK4wMZgCWA9jEqgN4C-iepAzpDAIYC2Im0MAdC-3EA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=&prettier=false&targets=&version=7.17.11&externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.16.5&assumptions=%7B%7D ### Current and expected behavior the output should a syntax matching the input syntax ### Environment running inside https://bablejs.io/repl ### Possible solution This scenario works properly with typescript, see https://www.typescriptlang.org/play?#code/G4QwTgBAZgdg3BAFLAlBAvNArjAxgFwEsB7GRFAbwF84g ### Additional context _No response_
How are you using Babel?
@babel/cli
Input code
nameshould have the value"fn"Configuration file name
No response
Configuration
https://babeljs.io/repl/#?browsers=%20Chrome%20%3E%3D%2067%2C%20Firefox%20%3E%3D%2063%2C%20Edge%20%3E%3D%2017%2C%20Opera%20%3E%3D%2057%2C%20Safari%20%3E%3D%2011.1%0A&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=DYUwLgBAZgdg3AKABSwJQQLzQK4wMZgCWA9jEqgN4C-iepAzpDAIYC2Im0MAdC-3EA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=&prettier=false&targets=&version=7.17.11&externalPlugins=%40babel%2Fplugin-transform-async-to-generator%407.16.5&assumptions=%7B%7D
Current and expected behavior
the output should a syntax matching the input syntax
Environment
running inside https://bablejs.io/repl
Possible solution
This scenario works properly with typescript, see https://www.typescriptlang.org/play?#code/G4QwTgBAZgdg3BAFLAlBAvNArjAxgFwEsB7GRFAbwF84g
Additional context
No response