swap default variable values to null/undef

This commit is contained in:
gnembon committed 2022-02-01 01:25:47 +01:00
1 parent 893c3b984f
commit 0be0fd1eff
1 file changed
+1 -1
+1 -1
View File
@@ -738,7 +738,7 @@ public class Expression
}
var = c.host.getGlobalVariable(module, name);
if (var != null) return var;
var = (_c, _t ) -> Value.ZERO.reboundedTo(name);
var = (_c, _t ) -> _c.host.strict ? Value.UNDEF.reboundedTo(name) : Value.NULL.reboundedTo(name);
setAnyVariable(c, name, var);
return var;
}