diff options
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r-- | js/src/jsobj.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 46f89e547e..3809df8ea8 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -3854,7 +3854,7 @@ JSObject::maybeConstructorDisplayAtom() const } // ES 2016 7.3.20. -MOZ_MUST_USE JSObject* +[[nodiscard]] JSObject* js::SpeciesConstructor(JSContext* cx, HandleObject obj, HandleObject defaultCtor, bool (*isDefaultSpecies)(JSContext*, JSFunction*)) { @@ -3916,7 +3916,7 @@ js::SpeciesConstructor(JSContext* cx, HandleObject obj, HandleObject defaultCtor return nullptr; } -MOZ_MUST_USE JSObject* +[[nodiscard]] JSObject* js::SpeciesConstructor(JSContext* cx, HandleObject obj, JSProtoKey ctorKey, bool (*isDefaultSpecies)(JSContext*, JSFunction*)) { |