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

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