add global scope

This commit is contained in:
cajun
2024-09-29 14:07:07 -05:00
parent 8709e69bcc
commit ebc4c4fa8d
6 changed files with 39 additions and 8 deletions
+5
View File
@@ -301,6 +301,11 @@ ScriptValueP Context::dependencies(const Dependency& dep, const Script& script)
setVariable((Variable)i.data, stack.back());
break;
}
// Set a global variable (as normal)
case I_SET_GLB: {
setGlobalVariable((Variable)i.data, stack.back());
break;
}
// Simple instruction: unary
case I_UNARY: {