summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/page_bytecode_cache_asm_js.js
blob: c7e1b7b645f7642ded8ed1dbbf4a4d512525b404 (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
window.onerror = function(e) {
  document.getElementById("result").textContent = e;
};

function f() {
  "use asm";
  function test() {
    return 10;
  }
  return test;
}

var dummy = [
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
  "dummy text to exceed the minimal source length for bytecode cache",
];