JavaScriptCore:
[WebKit-https.git] / LayoutTests / fast / js / resources / regexp-find-first-asserted.js
1 description(
2 'Tests some regular expressions that were doing the wrong thing with the "find first asserted" optimization.'
3 );
4
5 shouldBe('/.*<body>(.*)<\\/body>.*/.exec("foo<body>bar</body>baz").toString()', '"foo<body>bar</body>baz,bar"');
6 shouldBe('/\\s*<!--([\s\S]*)\\/\\/\\s*-->\\s*/.exec("<!--// -->").toString()', '"<!--// -->,"');
7
8 debug('');
9
10 var successfullyParsed = true;