Open Bug 1309784 Opened 3 years ago Updated 3 years ago

Add Cyclomatic Complexity

Categories

(Developer Documentation :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: tamir.daniely, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

Add rough cyclomatic complexity counts for all calls so a reader can say compare Reflect.construct to new() based on let's call it "intended implementation" in those cases where the engine actually has to conform to at least reasonable performances. For example Set should always start as array and expand to a hashed set and Set.has() is theoretically guaranteed to be optimal. So the documentation should state such things. Also comparing new() and Reflect.construct(), it is clear that you can expect new() to always be faster then Reflect.construct(). This needs to be stated for novice learners.
Component: General → JavaScript
You need to log in before you can comment on or make changes to this bug.