Files
sousa-gecko/devtools/client/debugger/test/mochitest/examples/module-gc.js
T
Bryan Thrall e54ad129df Bug 1605686 - Reparse scripts as modules r=nchevobbe,devtools-reviewers,arai
I merged Brian Hackett's original patch (D59955) with Alex's test improvements
(D207243) and rebased ontocentral.

Note that the original evaluated script in Source-parse.js is not using strict
mode, so the test already demonstrated that reparsing non-strict mode succeeds.

Differential Revision: https://phabricator.services.mozilla.com/D213690
2026-01-14 22:21:37 +00:00

11 lines
216 B
JavaScript

import stuff from "./module-gc2.js";
var x = 10;
export function moduleFunction() {
stuff(x);
}
// GC the module scripts so the Debugger has to reparse (see bug 1605686)
setTimeout(() => SpecialPowers.gc(), 0);