1
0
forked from Mirror/wren

In List.+(other), other should be an iterable, list is not required (#872)

We're iterating over it but do not check it's actually a list:

cb51d61a64/src/vm/wren_core.wren (L363-L369)
This commit is contained in:
Chayim Refael Friedman
2021-01-31 07:33:54 +02:00
committed by GitHub
parent 4ac41c36db
commit 1720a20979

View File

@ -177,7 +177,7 @@ It is a runtime error if the index is not an integer or is out of bounds.
### **+**(other) operator
Appends a list to the end of the list (concatenation). `other` must be a `List`.
Appends a list to the end of the list (concatenation). `other` must be [an iterable](../../control-flow.html#the-iterator-protocol).
<pre class="snippet">
var letters = ["a", "b", "c"]