This will make it easier to see whether the code matches the spec or not.
Created attachment 291389 [details]
Created attachment 291391 [details]
Comment on attachment 291391 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=291391&action=review
> + unsigned itemCount = std::max<unsigned>(exec->argumentCount() - 2, 0);
this doesn't seem correct.
Created attachment 291392 [details]
Thanks for catching the bad cast. It's fixed.
Thanks for the review. Landed in r207241: <http://trac.webkit.org/r207241>.