Compare commits

...

2 Commits

Author SHA1 Message Date
d8e46c3149 fix: clone environment correctly 2024-03-31 16:11:32 +03:00
5fc5eb08f8 fix: update breakpoints when removing bp 2024-03-30 12:52:44 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
project_group = me.topchetoeu
project_name = jscript
project_version = 0.9.26-beta
project_version = 0.9.27-beta
main_class = me.topchetoeu.jscript.utils.JScriptRepl

View File

@@ -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();
@@ -750,6 +749,7 @@ public class SimpleDebugger implements Debugger {
var id = Integer.parseInt(msg.params.string("breakpointId"));
idToBreakpoint.remove(id);
updateBreakpoints();
ws.send(msg.respond());
}
@Override public synchronized void continueToLocation(V8Message msg) throws IOException {