Source code
Revision control
Copy as Markdown
Other Tools
// |reftest| skip-if(!this.hasOwnProperty("oomTest"))
var BUGNUMBER = 1471371;
var summary = 'Handle OOM in RegExp';
printBugNumber(BUGNUMBER);
printStatus(summary);
oomTest(function () {
for (var i = 0; i < 10; ++i) {
try {
RegExp("", "gimuyz");
} catch { }
}
});
if (typeof reportCompare === "function")
reportCompare(true, true);