JDK-8007522.js revision 69:819b5485949d
1/** 2 * JDK-8007522: IllegalStateException thrown from String.prototype.search function 3 * 4 * @test 5 * @run 6 */ 7 8var str = "hello"; 9// search used to result in IllegalStateException 10if (str.search(/foo/g) != -1) { 11 fail("String.prototype.search failed"); 12} 13 14