Commit 083af5b
authored
fix(interpreter): remove exported vars from env on unset (#1042)
## Summary
- `unset VAR` now also removes the variable from `self.env`, not just
`self.variables`
- Previously, variable lookup fell back to `self.env`, so exported
variables remained accessible after `unset`
- Added spec tests for unset of exported and regular variables
Closes #9461 parent 4f06385 commit 083af5b
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4794 | 4794 | | |
4795 | 4795 | | |
4796 | 4796 | | |
| 4797 | + | |
4797 | 4798 | | |
4798 | 4799 | | |
4799 | 4800 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments