summaryrefslogtreecommitdiffstats
path: root/js/src/jsexn.cpp
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/src/jsexn.cpp
parent9ecabc46eb6adb35610698dbbea25a0bb580cc9e (diff)
downloadUXP-b794d24326f48db217127185a98b9ead91977e21.tar
UXP-b794d24326f48db217127185a98b9ead91977e21.tar.gz
UXP-b794d24326f48db217127185a98b9ead91977e21.tar.lz
UXP-b794d24326f48db217127185a98b9ead91977e21.tar.xz
UXP-b794d24326f48db217127185a98b9ead91977e21.zip
Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79
Diffstat (limited to 'js/src/jsexn.cpp')
-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 d4dce39b0..9a8e364ed 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)