summaryrefslogtreecommitdiff
path: root/js/src/vm/AsyncFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/AsyncFunction.h')
-rw-r--r--js/src/vm/AsyncFunction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/vm/AsyncFunction.h b/js/src/vm/AsyncFunction.h
index d1f9a44da1..47e7674ed1 100644
--- a/js/src/vm/AsyncFunction.h
+++ b/js/src/vm/AsyncFunction.h
@@ -26,11 +26,11 @@ WrapAsyncFunctionWithProto(JSContext* cx, HandleFunction unwrapped, HandleObject
JSObject*
WrapAsyncFunction(JSContext* cx, HandleFunction unwrapped);
-MOZ_MUST_USE bool
+[[nodiscard]] bool
AsyncFunctionAwaitedFulfilled(JSContext* cx, Handle<PromiseObject*> resultPromise,
HandleValue generatorVal, HandleValue value);
-MOZ_MUST_USE bool
+[[nodiscard]] bool
AsyncFunctionAwaitedRejected(JSContext* cx, Handle<PromiseObject*> resultPromise,
HandleValue generatorVal, HandleValue reason);