Function declaration returns the function, it should return undefined
#454
Labels
bug
Something isn't working
E-Easy
Easy
execution
Issues or PRs related to code execution
good first issue
Good for newcomers
Milestone
Describe the bug
A clear and concise description of what the bug is.
Function declaration returns the function, it should return
undefined
To Reproduce
Actual behavior
Returns the function, as if it was a function expression.
Output
Expected behavior
Explain what you expected to happen, and what is happening instead.
undefined
Build environment (please complete the following information):
Additional context
Add any other context about the problem here.
Changing the line https://github.com/boa-dev/boa/blob/master/boa/src/exec/declaration/mod.rs#L38 to return undefined should fix the problem.
The text was updated successfully, but these errors were encountered: