Skip to content

Commit

Permalink
Add console debug
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddavison committed Nov 27, 2023
1 parent 833f7c9 commit 3ad8631
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub fn init(ctx: &Ctx<'_>) -> Result<()> {
let console = Object::new(ctx.clone())?;

console.set("log", Func::from(log))?;
console.set("debug", Func::from(log))?;
console.set("info", Func::from(log))?;
console.set("info", Func::from(log))?;
console.set("error", Func::from(log_error))?;
Expand Down

0 comments on commit 3ad8631

Please sign in to comment.