blob: 11cb8a516c3b35f8036b965f32a853c6c211d787 [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');
var successfullyParsed = true;