-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: allow unsetting global vars from inside a function again
In dc2e11e "unset" of a global var inside a function was broken, as the special handling of "export" or "readonly" in function scope introduced in that commit also incorrectly captured "unset", calling "parent.Set" with the previous value. Tweak the logic so that "unset" is handled like it did before, which fixes the regression. Fixes #806
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters