Debug.log multiple params on one line

This commit is contained in:
Andrew Morris
2023-06-20 10:38:34 +10:00
parent c6b438d776
commit d136593fa7

View File

@@ -37,9 +37,13 @@ impl fmt::Display for DebugBuiltin {
}
static LOG: NativeFunction = native_fn(|_this, params| {
print!("Debug.log:");
for p in params {
println!("Debug.log: {}", p.pretty());
print!(" {}", p.pretty());
}
println!();
Ok(Val::Undefined)
});