Open Bug 1600159 Opened 5 years ago Updated 2 years ago

[Meta] Clean Up the FunctionBox initialization Story

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mgaudet, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: meta)

FunctionBox has a two-phase initialization story: First, the constructor sets fields to default values, then depending on the context subsequently an initializer may be called.

This means that it's difficult to know at any given place in the code if queries on FunctionBox can be relied upon, making understanding and refactoring difficult.

This meta bug is about trying to clarify the story such that we can reliably use all the queries on FunctionBox whenever we have one, to make it less of a footgun abstraction.

Depends on: 1600160
Depends on: 1600162
Depends on: 1600366
Priority: -- → P3
Severity: normal → S3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.