Changeset 41849 in webkit for trunk/LayoutTests/fast/js/resources/regexp-overflow.js
- Timestamp:
- Mar 19, 2009, 5:52:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/js/resources/regexp-overflow.js
r41842 r41849 21 21 shouldBe('/|[x\\B-\\u00b5]/i.exec("").toString()', '""'); 22 22 23 var complexPattern = ""; 24 for (var i = 0; i < 18; ++i) 25 complexPattern += "a?"; 26 for (var i = 0; i < 18; ++i) 27 complexPattern += "a"; 28 complexPattern = "(" + complexPattern + ")"; 29 30 var complexInput = ""; 31 for (var i = 0; i < 18; ++i) 32 complexInput += "a"; 33 34 shouldBe('new RegExp(complexPattern).exec(complexInput)[0]', 'complexInput'); // Big but OK 35 shouldBe('new RegExp(complexPattern + complexPattern).exec(complexInput + complexInput)', 'null'); // Too big 36 23 37 var s = "a"; 24 38 for (var i = 0; i < 21; i++)
Note:
See TracChangeset
for help on using the changeset viewer.