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
11 lines
216 B
JavaScript
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);
|