Fixed root environment bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 5 Mar 2022 13:16:17 +0000 (14:16 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 5 Mar 2022 13:16:17 +0000 (14:16 +0100)
src/jrw/Environment.java

index a93b149..57642e6 100644 (file)
@@ -4,7 +4,7 @@ import java.util.*;
 import java.util.function.*;
 
 public class Environment {
-    public static final Environment root = new Environment();
+    public static final Environment root = new Environment(null);
     private static final ThreadLocal<Environment> current = new ThreadLocal<>();
     public final Environment parent;
     private Map<Variable<?>, Object> data = Collections.emptyMap();