test_frameactor-05.js (787B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 add_task( 7 threadFrontTest(async ({ threadFront, debuggee }) => { 8 await executeOnNextTickAndWaitForPause( 9 () => evalCode(debuggee), 10 threadFront 11 ); 12 await checkFramesLength(threadFront, 5); 13 14 await resumeAndWaitForPause(threadFront); 15 await checkFramesLength(threadFront, 2); 16 17 await threadFront.resume(); 18 }) 19 ); 20 21 function evalCode(debuggee) { 22 debuggee.eval( 23 "(" + 24 function () { 25 function depth3() { 26 debugger; 27 } 28 function depth2() { 29 depth3(); 30 } 31 function depth1() { 32 depth2(); 33 } 34 depth1(); 35 debugger; 36 } + 37 ")()" 38 ); 39 }