summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug-1665583.js
blob: 012dc1d04369c33e2aac36ef79c0446828ac99f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// |jit-test| skip-if: !('oomTest' in this)

function parseModule(source) {
  offThreadCompileModuleToStencil(source);
  var stencil = finishOffThreadStencil();
  return instantiateModuleStencil(stencil);
}
function loadFile(lfVarx) {
  oomTest(function() {
      parseModule(lfVarx);
  });
}
loadFile(`
const numberingSystems = {
  "adlm": {},
  "ahom": {},
  "arab": {},
  "arabext": {},
  "armn": {},
  "armnlow": {},
  "bali": {},
  "beng": {},
  "bhks": {},
  "brah": {},
  "cakm": {},
  "cham": {},
  "cyrl": {},
  "hmnp": {},
  "java": {},
  "jpan": {},
  "jpanfin": {},
  "jpanyear": {},
  "knda": {},
  "lana": {},
  "latn": {},
  "lepc": {},
  "limb": {},
  "wcho": {},
  "extra1": {}
};
`);