Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79

This commit is contained in:
janekptacijarabaci 2018-03-17 17:03:00 +01:00 committed by Roy Tam
commit b31e40926e

View file

@ -537,7 +537,8 @@ ErrorObject::createConstructor(JSContext* cx, JSProtoKey key)
return nullptr;
ctor = NewFunctionWithProto(cx, Error, 1, JSFunction::NATIVE_CTOR, nullptr,
ClassName(key, cx), proto, gc::AllocKind::FUNCTION_EXTENDED);
ClassName(key, cx), proto, gc::AllocKind::FUNCTION_EXTENDED,
SingletonObject);
}
if (!ctor)