Erick finished support for the arguments object and I was able to get most of the array code working inside Tachyon. There are some basic unit tests in 'programs/stdlib_arrays/stdlib_arrays.js'. Not everything is yet tested as it will require support for apply.
I did encounter one strange thing. The behavior of Array.splice(0) on our system does the intuitive thing (removes nothing from the array). However, on V8, it removes everything from the array instead.
Another place where we differ is that V8's default array sort function seems to do a lexicographical sort. However, the standard seems to say this is implementation dependent, perhaps because this decision was made with the help of a Ouija board.
Marc, if you have time, could you look into which behavior is correct and adjust our array code if necessary? If you need to make changes, please make sure to use the latest version on the repository as I made some changes to the code already.
- Maxime