Added the ability to put as many splats in a function call as one wants. Also optimized the assembly into static arrays. Adjusted tests accordingly.

This commit is contained in:
matehat
2010-03-17 12:25:04 -04:00
parent 70cfc9500e
commit 2bd1c3acca
3 changed files with 70 additions and 26 deletions

View File

@@ -34,6 +34,13 @@ ok silver is "Michael Phelps"
ok bronze is "Liu Xiang"
ok the_field.length is 8
contenders.reverse()
medalists contenders[0...2]..., "Mighty Mouse", contenders[2...contenders.length]...
ok gold is "Usain Bolt"
ok silver is "Asafa Powell"
ok bronze is "Mighty Mouse"
ok the_field.length is 8
obj: {
name: 'bob'