summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/saved-stacks/shared-parent-frames.js
blob: c6b4332dd977668ce05fb1cfdc568d002501d9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test that parent frames are shared when the older portions of two stacks are
// the same.

let f1, f2;

function dos() {
  f1 = saveStack();
  f2 = saveStack();
}

(function uno() {
  dos();
}());


// Different youngest frames.
assertEq(f1 == f2, false);
// However the parents should be the same.
assertEq(f1.parent, f2.parent);