Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / regexp-unicode-overflow.js
bloba15dd548387195cc4850322f94e14fe99750933f
1 description(
2 'This test checks for a regression against <a href="rdar://problem/5271937"> REGRESSION: Apparent WebKit JavaScript memory smasher when submitting comment to iWeb site (crashes in kjs_pcre_compile2)</a>. If it fails, it may crash.'
3 );
5 //For some reason this needed to be done by a function call.
6 function createRegExs() {
7 shouldBe('new RegExp("[k\xA0]", "i").toString()', '/[k\xA0]/i.toString()');
8 shouldBe('new RegExp("[k\u2019]", "i").toString()', '/[k\u2019]/i.toString()');
9 shouldBe('new RegExp("[k\u201c]", "i").toString()', '/[k\u201c]/i.toString()');
10 shouldBe('new RegExp("[k\u201d]", "i").toString()', '/[k\u201d]/i.toString()');
13 createRegExs();