summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/regexp/bug1640475.js
blob: 58c092ec1d1823e075ee9861b1d965103cf0ff37 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: !('oomTest' in this)

var i = 0;
oomTest(function() {
    for (var j = 0; j < 10; ++j) {
        var r = RegExp(`(?<_${(i++).toString(32)}>a)`);
        r.exec("a");
    }
});