now variables can access the global scope

This commit is contained in:
Francesco Cozzuto
2021-11-30 23:34:16 +01:00
parent c6387154b0
commit cbb8ac4337
7 changed files with 72 additions and 52 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
Runtime_SetBuiltins(runtime, builtins);
Object *result = run(runtime, (Error*) &error, exe, 0, NULL, 0);
Object *result = run(runtime, (Error*) &error, exe, 0, NULL, 1, NULL, 0);
if(result == NULL)
{