Debian Codegraph @

js/src/jit-test/tests/gc/oomInRegExpAlternativeGeneration.js

raw
1 // |jit-test| allow-oom; allow-unhandlable-oom
2 // Bug 1234402
3 // Unhandlable OOM in AlternativeGeneration::AlternativeGeneration.
4
5 if (typeof oomAfterAllocations == "function" && helperThreadCount() > 0) {
6 offThreadCompileToStencil(`
7 [null, "", ""].forEach(function(locales) {
8 try {
9 Intl.NumberFormat(locales)
10 } catch (e) {}
11 oomAfterAllocations(100);
12 })
13 `);
14 var stencil = finishOffThreadStencil();
15 evalStencil(stencil);
16 }