Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit a082478

Browse files
change Tuple#concat to spread on IsArrayOrTuple, not IsConcatSpreadable (#328)
* change Tuple#concat to spread on IsArrayOrTuple, not IsConcatSpreadable
1 parent 94cd6e3 commit a082478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/immutable-data-structures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ <h1>Tuple.prototype.concat ( ..._args_ )</h1>
267267
1. Let _items_ be a List whose first element is _T_ and whose subsequent element are, in left to right order, the arguments that were passed to this function invocation.
268268
1. Repeat, while _items_ is not empty,
269269
1. Remove the first element from _items_ and let _E_ be the value of the element.
270-
1. Let _spreadable_ be ? IsConcatSpreadable(_E_).
270+
1. Let _spreadable_ be ? IsArrayOrTuple(_E_).
271271
1. If _spreadable_ is *true*, then
272272
1. Set _E_ to ! ToObject(_E_).
273273
1. Let _k_ be 0.

0 commit comments

Comments
 (0)