blob: cfe175758c87101921fa4fedc6bd11c9262b7df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Test the functionDisplayName of SavedFrame instances.
function uno() { return dos(); }
const dos = () => tres.quattro();
const tres = {
quattro: () => saveStack()
};
const frame = uno();
assertEq(frame.functionDisplayName, "tres.quattro");
assertEq(frame.parent.functionDisplayName, "dos");
assertEq(frame.parent.parent.functionDisplayName, "uno");
assertEq(frame.parent.parent.parent.functionDisplayName, null);
assertEq(frame.parent.parent.parent.parent, null);
|