Closed MichaelXF closed 11 months ago
Describe the bug:
Dispatcher breaks function with default parameter that is a function expression that references a shadowed variable.
Config and Small code sample
Config:
{ target: "node", dispatcher: true }
Code:
var X = "Correct Value"; function printX( getX = function () { return X; } ) { var X = "Incorrect Value"; console.log(getX()); } printX();
Expected behavior
The program should output "Correct Value"
Actual behavior
The program outputs "Incorrect Value"
Describe the bug:
Dispatcher breaks function with default parameter that is a function expression that references a shadowed variable.
Config and Small code sample
Config:
Code:
Expected behavior
The program should output "Correct Value"
Actual behavior
The program outputs "Incorrect Value"