Change object maps to #{ ... }

This commit is contained in:
Stephen Chung
2020-03-30 17:40:26 +08:00
parent ee18f047b4
commit 01c0b51017
5 changed files with 39 additions and 36 deletions

View File

@@ -610,8 +610,8 @@ impl Engine<'_> {
#[cfg(not(feature = "no_object"))]
{
self.register_fn("print", |x: &mut Map| -> String { format!("${:?}", x) });
self.register_fn("debug", |x: &mut Map| -> String { format!("${:?}", x) });
self.register_fn("print", |x: &mut Map| -> String { format!("#{:?}", x) });
self.register_fn("debug", |x: &mut Map| -> String { format!("#{:?}", x) });
}
}