blob: 9ab5f4c4f900b0224b614630af70b05eccd1afbf [file] [log] [blame]
description("Verify that we don't hang while handling an exception for an undefined native function.");
myString = "The quick brown fox....";
for (i = 0; i < 1000; i++)
{
try {
if (myString.search("end of comment */") != -1)
testFailed("Incorrect index returned from String.search(), expected -1");
} catch (e) {
break;
}
if (i == 900)
String.prototype.search = undefined;
}
testPassed("Properly handled undefined native function");