summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInRegExpAlternativeGeneration.js
blob: b2a8ea7588791102b526deb565eb5f1e200ae440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| allow-oom; allow-unhandlable-oom
// Bug 1234402
// Unhandlable OOM in AlternativeGeneration::AlternativeGeneration.

if (typeof oomAfterAllocations == "function" && helperThreadCount() > 0) {
  offThreadCompileToStencil(`
[null, "", ""].forEach(function(locales) {
try {
Intl.NumberFormat(locales)
} catch (e) {}
oomAfterAllocations(100);
})
`);
  var stencil = finishOffThreadStencil();
  evalStencil(stencil);
}