fix: clone environment correctly
This commit is contained in:
parent
5fc5eb08f8
commit
e6955d2517
@ -192,7 +192,7 @@ public class SimpleDebugger implements Debugger {
|
||||
}
|
||||
|
||||
public ObjRef(Context ctx, ObjectValue obj) {
|
||||
this.ctx = ctx;
|
||||
this.ctx = ctx.environment.context();
|
||||
this.obj = obj;
|
||||
}
|
||||
}
|
||||
@ -349,8 +349,7 @@ public class SimpleDebugger implements Debugger {
|
||||
}
|
||||
private JSONMap serializeObj(Context ctx, Object val, boolean byValue) {
|
||||
val = Values.normalize(null, val);
|
||||
var newEnv = new Environment();
|
||||
newEnv.addAll(ctx);
|
||||
var newEnv = ctx.environment.child();
|
||||
newEnv.add(DebugContext.IGNORE);
|
||||
ctx = newEnv.context();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user