Skip to content

Commit 1861882

Browse files
authored
fix: leftover debug (#921)
1 parent 2a3403d commit 1861882

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

nova_vm/src/engine/bytecode/bytecode_compiler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4187,7 +4187,6 @@ impl<'a, 's, 'gc, 'scope> CompileLabelledEvaluation<'a, 's, 'gc, 'scope>
41874187
ControlFlow::Break(err.into())
41884188
} else {
41894189
let stmt_result = self.body.compile(ctx);
4190-
eprintln!("Inner statement result: {stmt_result:?}");
41914190
if stmt_result.is_continue() {
41924191
ctx.add_jump_instruction_to_index(Instruction::Jump, continue_label.clone());
41934192
}

nova_vm/src/engine/bytecode/bytecode_compiler/class_definition_evaluation.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,7 @@ impl<'a, 's, 'gc, 'scope> CompileEvaluation<'a, 's, 'gc, 'scope> for ast::Static
10371037
// a. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
10381038
// b. Let instantiatedVarNames be a copy of the List parameterBindings.
10391039
let mut instantiated_var_names = AHashSet::new();
1040-
ctx.add_instruction(Instruction::Debug);
10411040
let static_env = ctx.enter_lexical_scope();
1042-
ctx.add_instruction(Instruction::Debug);
10431041
let mut stack_variables = vec![];
10441042

10451043
// c. For each element n of varNames, do
@@ -1150,11 +1148,9 @@ impl<'a, 's, 'gc, 'scope> CompileEvaluation<'a, 's, 'gc, 'scope> for ast::Static
11501148
break;
11511149
}
11521150
}
1153-
ctx.add_instruction(Instruction::Debug);
11541151
for stack_variable in stack_variables {
11551152
stack_variable.exit(ctx);
11561153
}
1157-
ctx.add_instruction(Instruction::Debug);
11581154
static_env.exit(ctx);
11591155
}
11601156
}

0 commit comments

Comments
 (0)