| OLD | NEW |
| (Empty) |
| 1 description( | |
| 2 'This test checks for a regression against <a href="rdar://problem/4161606">Java
Script regular expressions with certain ranges of Unicode characters cause a cra
sh</a>. If it fails, it may crash.' | |
| 3 ); | |
| 4 | |
| 5 | |
| 6 // test ranges reported in bug | |
| 7 shouldBe('new RegExp("[\u00c0-\u1f4d]").toString()', '/[\u00c0-\u1f4d]/.toString
()'); | |
| 8 shouldBe('new RegExp("[\u3041-\u3094]").toString()', '/[\u3041-\u3094]/.toString
()'); | |
| 9 shouldBe('new RegExp("[\u4d00-\u4db5]").toString()', '/[\u4d00-\u4db5]/.toString
()'); | |
| 10 shouldBe('new RegExp("[\u4e00-\u9fa5]").toString()', '/[\u4e00-\u9fa5]/.toString
()'); | |
| 11 | |
| 12 // test first char < 255, last char > 255 | |
| 13 shouldBe('new RegExp("[\u0001-\u1f4d]").toString()', '/[\u0001-\u1f4d]/.toString
()'); | |
| OLD | NEW |