fixed local scoping on call tag.
This commit is contained in:
1 parent
9a9abab92d
commit
af7080e011
4 files changed
+5
-9
No files matched your search
+2
-2
@@ -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.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user