Bug Report
Current Behavior
Cannot read property 'name' of null error is coming when babel is parsing.
Since target.node.id is null
Input Code
This code breaks on repl with only es2015 preset selected
const E_ARR = [];
export default function () {
const someVar = E_ARR;
return [...someVar];
}
Expected behavior/code
This code is working though
export default function () {
const E_ARR = [];
const someVar = E_ARR;
return [...someVar];
}
const E_ARR = [];
export default function namedFunction() {
const someVar = E_ARR;
return [...someVar];
}
Environment
Possible Solution
We believe it's being caused by the latest release this weekend.
Additional context/Screenshots
This same code was working before this weekend's release
Bug Report
Current Behavior
Cannot read property 'name' of nullerror is coming when babel is parsing.Since
target.node.id is nullInput Code
This code breaks on repl with only es2015 preset selected
Expected behavior/code
This code is working though
Environment
cli,register,loader]: https://babeljs.io/replPossible Solution
We believe it's being caused by the latest release this weekend.
Additional context/Screenshots
This same code was working before this weekend's release