summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/page_bytecode_cache_asm_js.js
blob: 03f8a6c0b817e6b837504d636fb28a80b6ea0ab8 (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",
];