Open Bug 1478532 Opened 6 years ago Updated 2 years ago

Filter out JSScripts which ancestor script failed to compile, in Debugger.findScripts

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox63 --- affected

People

(Reporter: arai, Unassigned)

References

(Blocks 1 open bug)

Details

separated from bug 1434305 comment #83. Currently findScripts reports JSScripts which has code, it guarantees the script itself and inner scripts are successfully compiled, but it doesn't guarantee the ancestor scripts are successfully compiled, because the ancestor scripts can fail while emitting the code after compiling the inner JSScripts, and the inner JSScripts can live until they get GCed, and findScripts can find them meanwhile. To address this issue, we should somehow invalidate all descendant scripts when the enclosing script fails to compile.
Depends on: 1434305
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.