reduce and reduceRight throw a TypeError when array empty and no initVal As per 15.4.4.21 step 5, and 15.4.4.22 step 5 of the spec. Patch from Raphael Speyer. git-svn-id: svn://10.0.0.236/trunk@257918 18797224-902f-48f8-a5cc-f745e15eee43
reduce and reduceRight throw a TypeError when array empty and no initVal As per 15.4.4.21 step 5, and 15.4.4.22 step 5 of the spec. Patch from Raphael Speyer. git-svn-id: svn://10.0.0.236/trunk@257918 18797224-902f-48f8-a5cc-f745e15eee43