From b31e40926e8a48d634b5bc22df0aa11d315869b9 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sat, 17 Mar 2018 17:03:00 +0100 Subject: [PATCH] Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79 --- js/src/jsexn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/jsexn.cpp b/js/src/jsexn.cpp index d4dce39b09..9a8e364edd 100644 --- a/js/src/jsexn.cpp +++ b/js/src/jsexn.cpp @@ -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)