mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Fix undefined elements in array toString
This commit is contained in:
@@ -103,7 +103,11 @@ impl ValTrait for Val {
|
||||
|
||||
for val in iter {
|
||||
res += ",";
|
||||
res += val.val_to_string().as_str();
|
||||
|
||||
match val.typeof_() {
|
||||
VsType::Undefined => {},
|
||||
_ => { res += &val.val_to_string(); },
|
||||
};
|
||||
}
|
||||
|
||||
res
|
||||
|
||||
Reference in New Issue
Block a user