]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/large-regexp.js
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / tests / stress / large-regexp.js
CommitLineData
81345200
A
1if (''.match(/(,9111111111{2257483648,}[:lower:])|(ab)/))
2 throw new Error("Incorrect result, should not have matched")
3
4if (''.match(/(1{1,2147483648})|(ab)/))
5 throw new Error("Incorrect result, should not have matched")
6
7if (''.match(/(1{2147480000,}2{3648,})|(ab)/))
8 throw new Error("Incorrect result, should not have matched")
9
10if (!'1234'.match(/1{1,2147483645}2{1,2147483645}3{1,2147483645}4{1,2147483645}/))
11 throw new Error("Incorrect result, should have matched")