browser_dbg-eager-eval-skip-pause.js (656B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 // Test that eager evaluation skips breakpoints and debugger statements 6 7 "use strict"; 8 9 add_task(async function () { 10 const dbg = await initDebugger("doc-strict.html"); 11 const { hud } = await getDebuggerSplitConsole(dbg); 12 13 await addBreakpoint(dbg, "doc-strict.html", 15); 14 setInputValue(hud, "strict()"); 15 await waitForEagerEvaluationResult(hud, `3`); 16 17 setInputValue(hud, "debugger; 2"); 18 await waitForEagerEvaluationResult(hud, `2`); 19 });