Open
Bug 1687964
Opened 4 years ago
Updated 4 years ago
Cleanup initial-prototype lookup for JSFunctions
Categories
(Core :: JavaScript Engine, task, P2)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: tcampbell, Unassigned)
References
(Blocks 1 open bug)
Details
There are a few accumulated oddities about how we find the initial prototype for a function. In many places we use nullptr for the "default" prototype, but that often means we have different code paths for normal functions vs async/generator functions.
https://searchfox.org/mozilla-central/rev/1ebc9745be02eebf7a694f5c527a44a045b8c97a/js/src/vm/JSFunction.cpp#2088-2117
https://searchfox.org/mozilla-central/rev/1ebc9745be02eebf7a694f5c527a44a045b8c97a/js/src/frontend/Stencil.cpp#177-178
... probably other places too
Reporter | ||
Updated•4 years ago
|
Assignee: tcampbell → nobody
Blocks: stencil-backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•