зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1637566 - FinalizationRegistrationsObject's Records slot should be created as a WeakFinalizationRecordVector r=anba
Depends on D75272 Differential Revision: https://phabricator.services.mozilla.com/D75273
This commit is contained in:
Родитель
8274562a4d
Коммит
09d946f81d
|
@ -158,7 +158,7 @@ const JSClassOps FinalizationRegistrationsObject::classOps_ = {
|
|||
/* static */
|
||||
FinalizationRegistrationsObject* FinalizationRegistrationsObject::create(
|
||||
JSContext* cx) {
|
||||
auto records = cx->make_unique<FinalizationRecordVector>(cx->zone());
|
||||
auto records = cx->make_unique<WeakFinalizationRecordVector>(cx->zone());
|
||||
if (!records) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче