browser_dbg-gc-breakpoint-positions.js (631B)
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 we can set breakpoints in scripts that have been GCed. 6 7 "use strict"; 8 9 add_task(async function () { 10 const dbg = await initDebugger( 11 "doc-gc-breakpoint-positions.html", 12 "doc-gc-breakpoint-positions.html" 13 ); 14 await selectSource(dbg, "doc-gc-breakpoint-positions.html"); 15 await addBreakpoint(dbg, "doc-gc-breakpoint-positions.html", 21); 16 ok(true, "Added breakpoint at GC'ed script location"); 17 });