blob: 2d880a64b1444ffd872e13dfdf6c19c1506e01b1 [file] [log] [blame]
function doTest(childRegExp)
{
re = childRegExp;
shouldThrow("re('a')");
shouldBe("re.exec('a')", "['a']");
}
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
iframe.contentDocument.write('<script>top.doTest(/a/)</script>');
iframe.contentDocument.close();
document.write('DONE');