Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
1 // Error().stack (ScriptFrameIter) should see through JS_SaveFrameChain.
2 function gamma() {
3 stack = Error().stack;
4 }
5 function beta() {
6 evaluate("gamma()", {saveFrameChain: true});
7 }
8 function alpha() {
9 beta();
10 }
11 alpha();
13 assertEq(/alpha/.test(stack), true);
14 assertEq(/beta/.test(stack), true);
15 assertEq(/gamma/.test(stack), true);