Simplify debugger calls.

This commit is contained in:
Stephen Chung
2022-02-03 11:56:08 +08:00
parent 8322e62c18
commit 9fa6839380
6 changed files with 90 additions and 111 deletions

View File

@@ -142,8 +142,7 @@ impl Engine {
};
#[cfg(feature = "debugging")]
if self.debugger.is_some() {
println!("Level = {}", level);
{
let node = crate::ast::Stmt::Noop(fn_def.body.position());
self.run_debugger(scope, global, state, lib, this_ptr, &node, level)?;
}