michael@0: // Test that parent frames are shared when the older portions of two stacks are michael@0: // the same. michael@0: michael@0: let f1, f2; michael@0: michael@0: function dos() { michael@0: f1 = saveStack(); michael@0: f2 = saveStack(); michael@0: } michael@0: michael@0: (function uno() { michael@0: dos(); michael@0: }()); michael@0: michael@0: michael@0: // Different youngest frames. michael@0: assertEq(f1 == f2, false); michael@0: // However the parents should be the same. michael@0: assertEq(f1.parent, f2.parent);