summaryrefslogtreecommitdiff
path: root/js/src/jsobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsobj.h')
-rw-r--r--js/src/jsobj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsobj.h b/js/src/jsobj.h
index a53667d251..1948eb036d 100644
--- a/js/src/jsobj.h
+++ b/js/src/jsobj.h
@@ -1345,11 +1345,11 @@ FreezeObject(JSContext* cx, HandleObject obj)
extern bool
TestIntegrityLevel(JSContext* cx, HandleObject obj, IntegrityLevel level, bool* resultp);
-extern MOZ_MUST_USE JSObject*
+[[nodiscard]] extern JSObject*
SpeciesConstructor(JSContext* cx, HandleObject obj, HandleObject defaultCtor,
bool (*isDefaultSpecies)(JSContext*, JSFunction*));
-extern MOZ_MUST_USE JSObject*
+[[nodiscard]] extern JSObject*
SpeciesConstructor(JSContext* cx, HandleObject obj, JSProtoKey ctorKey,
bool (*isDefaultSpecies)(JSContext*, JSFunction*));