summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/force-full-parse.js
blob: 40126770554df72bb4c96c178e0c8e7ba49c4125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
load(libdir + 'bytecode-cache.js');

var test = `
function f() {
  function f1() {
    return 1;
  }
  function f2() {
    return 20;
  }
  return f1() + f2();
}
function g() {
  return 300;
}
f() + g();
`;
evalWithCache(test, { assertEqBytecode: true, assertEqResult : true,
                      forceFullParse: true, });