LytixDev / slash

The Slash Scripting Language
GNU General Public License v3.0
7 stars 0 forks source link

fix: SlashFunction in REPL #91

Closed LytixDev closed 6 months ago

LytixDev commented 6 months ago

Issue is that AST nodes and StrViews are reset after each command in the REPL. This causes functions to point to "freed" data. The solution is to deep copy each AST node included in the function.