summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 17:03:00 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-17 17:03:00 +0100
commitb794d24326f48db217127185a98b9ead91977e21 (patch)
tree8e853258f0511932d83d7ddfa5be5cd12d94cf1b /js
parent9ecabc46eb6adb35610698dbbea25a0bb580cc9e (diff)
downloaduxp-b794d24326f48db217127185a98b9ead91977e21.tar.gz
Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79
Diffstat (limited to 'js')
-rw-r--r--js/src/jsexn.cpp3
1 files changed, 2 insertions, 1 deletions
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)