swap default variable values to null/undef
This commit is contained in:
1 parent
893c3b984f
commit
0be0fd1eff
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user