blob: f09cca81b10cc26edb6dc1f09eea7b93dc14a9a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |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);
|