Open Bug 1089625 Opened 11 years ago Updated 8 months ago

Don't create script just to resolve function's .length property

Categories

(Core :: JavaScript Engine, enhancement, P5)

x86_64
Linux
enhancement

Tracking

()

People

(Reporter: jorendorff, Unassigned)

References

(Blocks 1 open bug)

Details

Waldo asked for this in bug 911142 comment 8. I don't know if we have the information at hand in lazy functions or not.
Severity: normal → S3

This bug is still valid as the following stack still calls getOrCreateScript.

JSFunction::getLength at https://searchfox.org/mozilla-central/rev/7c573d9eb97e7b1ba383239bfac9260b26983544/js/src/vm/JSFunction-inl.h#104
JSFunction::getUnresolvedLength at https://searchfox.org/mozilla-central/rev/7c573d9eb97e7b1ba383239bfac9260b26983544/js/src/vm/JSFunction-inl.h#120
fun_resolve at https://searchfox.org/mozilla-central/rev/7c573d9eb97e7b1ba383239bfac9260b26983544/js/src/vm/JSFunction.cpp#667

Not sure how much this matters nowadays.

Blocks: sm-runtime
Severity: S3 → N/A
Type: defect → enhancement
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.