Closed
Bug 1693046
Opened 4 years ago
Closed 4 years ago
Remove JSClass parameter from NewObjectGCKind
Categories
(Core :: JavaScript Engine, task)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
87 Branch
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
Remove JSClass parameter from NewObjectGCKind because it's effectively unused.
Assignee | ||
Comment 1•4 years ago
|
||
js::CreateThis()
calls into NewObject()
via NewObjectWithClassProto()
,
and NewObject()
asserts when the class is either ArrayObject::class_
or
JSFunction::class_
and the AllocKind
is neither AllocKind::FUNCTION
nor
AllocKind::FUNCTION_EXTENDED
. That means js::CreateThis()
is never called
for arrays and functions and therefore it's okay to ignore the JSClass*
passed to NewObjectGCKind()
.
Also remove the reference to bug 547327, because the bug has been closed.
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/78953b4969b3
Remove JSClass parameter from NewObjectGCKind. r=jandem
![]() |
||
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•