Switch the get_loop_elements implementation to only return populated arrays when its an array-like object.

This commit is contained in:
Tom Alexander
2020-05-24 16:27:13 -04:00
parent 59ee4f508f
commit 966499db76
5 changed files with 14 additions and 50 deletions

View File

@@ -54,7 +54,7 @@ impl Loopable for IterationContext {
// TODO: Would this even ever be called? Won't matter, but I'd
// like to know. Since it is injected 1 above the current
// context, we wouldn't be able to access it with `{.}`.
vec![self]
Vec::new()
}
}