Panic while executing eval
inside block inside function
#2317
Labels
bug
Something isn't working
E-Medium
Medium difficulty problem
help wanted
Extra attention is needed
vm
Issues and PRs related to the Boa Virtual Machine.
Milestone
Describe the bug
The interpreter panics while executing the following snippet:
Additional context
While doing some preliminar investigation, I realized functions don't push a new environment:
Notice how the inner block pushes a declarative environment, but the function doesn't. However, if you define argument initializers, the function pushes a function environment, and this fixes the bug:
cc @raskad and @HalidOdat which are the most familiar with the vm.
The text was updated successfully, but these errors were encountered: