fixed local scoping on call tag.

This commit is contained in:
brad Arant committed 2024-12-21 21:03:17 -08:00
1 parent 9a9abab92d
commit af7080e011
4 files changed
+5 -9

No files matched your search

+2 -2
View File
@@ -54,9 +54,9 @@ namespace jet {
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]].read(fdo[0]);
else if(variables["scope"] == "local")
local->variables[variables["name"]].read(fdo[0]);
this->local->variables[variables["name"]].read(fdo[0]);
else if(variables["scope"] == "parent")
local->parent->local->variables[variables["name"]].read(fdo[0]);
this->local->parent->local->variables[variables["name"]].read(fdo[0]);
else
throw coreutils::Exception("scope value is not valid.");