unify empty list to '' in atom_chars/2
@@ -1288,8 +1288,12 @@ pub(crate) fn atom_chars(&mut self) {
if let Some(str_like) = self.machine_st.value_to_str_like(a2) {
let atom = match str_like {
AtomOrString::Atom(atom) => {
+ if atom == atom!("[]") {
+ self.machine_st.atom_tbl.build_with("")
+ } else {
atom
}
+ }
AtomOrString::String(string) => {
self.machine_st.atom_tbl.build_with(&string)
}
