| OLD | NEW |
| (Empty) |
| 1 description( | |
| 2 'This is a test case for <a https://bugs.webkit.org/show_bug.cgi?id=64679">bug 6
4679</a>.' | |
| 3 ); | |
| 4 | |
| 5 // These calls pass undefined as this value, and as such should throw in toObjec
t. | |
| 6 shouldThrow("Array.prototype.toString.call(undefined)"); | |
| 7 shouldThrow("Array.prototype.toLocaleString.call(undefined)"); | |
| 8 shouldThrow("Array.prototype.concat.call(undefined, [])"); | |
| 9 shouldThrow("Array.prototype.join.call(undefined, [])"); | |
| 10 shouldThrow("Array.prototype.pop.call(undefined)"); | |
| 11 shouldThrow("Array.prototype.push.call(undefined, {})"); | |
| 12 shouldThrow("Array.prototype.reverse.call(undefined)"); | |
| 13 shouldThrow("Array.prototype.shift.call(undefined)"); | |
| 14 shouldThrow("Array.prototype.slice.call(undefined, 0, 1)"); | |
| 15 shouldThrow("Array.prototype.sort.call(undefined)"); | |
| 16 shouldThrow("Array.prototype.splice.call(undefined, 0, 1)"); | |
| 17 shouldThrow("Array.prototype.unshift.call(undefined, {})"); | |
| 18 shouldThrow("Array.prototype.every.call(undefined, toString)"); | |
| 19 shouldThrow("Array.prototype.forEach.call(undefined, toString)"); | |
| 20 shouldThrow("Array.prototype.some.call(undefined, toString)"); | |
| 21 shouldThrow("Array.prototype.indexOf.call(undefined, 0)"); | |
| 22 shouldThrow("Array.prototype.indlastIndexOfexOf.call(undefined, 0)"); | |
| 23 shouldThrow("Array.prototype.filter.call(undefined, toString)"); | |
| 24 shouldThrow("Array.prototype.reduce.call(undefined, toString)"); | |
| 25 shouldThrow("Array.prototype.reduceRight.call(undefined, toString)"); | |
| 26 shouldThrow("Array.prototype.map.call(undefined, toString)"); | |
| 27 | |
| 28 // Test exception ordering in Array.prototype.toLocaleString ( https://bugs.webk
it.org/show_bug.cgi?id=80663 ) | |
| 29 shouldThrow("[{toLocaleString:function(){throw 1}},{toLocaleString:function(){th
row 2}}].toLocaleString()", '1'); | |
| OLD | NEW |