| OLD | NEW |
| (Empty) |
| 1 description( | |
| 2 'This is a test case for <a https://bugs.webkit.org/show_bug.cgi?id=64678">bug 6
4678</a>.' | |
| 3 ); | |
| 4 | |
| 5 //ES 5.1 allows for Object.prototype.toString being called with undefined/null. | |
| 6 shouldBe("Object.prototype.toString.call(undefined)", '"[object Undefined]"'); | |
| 7 shouldBe("Object.prototype.toString.call(null)", '"[object Null]"'); | |
| 8 | |
| 9 // These calls pass undefined as this value, and as such should throw in toObjec
t. | |
| 10 shouldThrow("Object.prototype.toLocaleString.call(undefined)"); | |
| 11 shouldThrow("Object.prototype.valueOf.call(undefined)"); | |
| 12 shouldThrow("Object.prototype.hasOwnProperty.call(undefined, 'hasOwnProperty')")
; | |
| 13 shouldThrow("Object.prototype.propertyIsEnumerable.call(undefined, 'propertyIsEn
umerable')"); | |
| 14 shouldThrow("Object.prototype.isPrototypeOf.call(undefined, this)"); | |
| OLD | NEW |