michael@0: // Test the functionDisplayName of SavedFrame instances. michael@0: michael@0: function uno() { return dos(); } michael@0: const dos = () => tres.quattro(); michael@0: const tres = { michael@0: quattro: () => saveStack() michael@0: }; michael@0: michael@0: const frame = uno(); michael@0: michael@0: assertEq(frame.functionDisplayName, "tres.quattro"); michael@0: assertEq(frame.parent.functionDisplayName, "dos"); michael@0: assertEq(frame.parent.parent.functionDisplayName, "uno"); michael@0: assertEq(frame.parent.parent.parent.functionDisplayName, null); michael@0: michael@0: assertEq(frame.parent.parent.parent.parent, null); michael@0: