summaryrefslogtreecommitdiff
path: root/js/src/builtin/Eval.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/builtin/Eval.h')
-rw-r--r--js/src/builtin/Eval.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/Eval.h b/js/src/builtin/Eval.h
index 4a1bd8642e..4b834928e2 100644
--- a/js/src/builtin/Eval.h
+++ b/js/src/builtin/Eval.h
@@ -16,17 +16,17 @@ namespace js {
// JSOP_EVAL which in turn calls DirectEval. Thus, even though IndirectEval is
// the callee function object for *all* calls to eval, it is by construction
// only ever called in the case indirect eval.
-extern MOZ_MUST_USE bool
+[[nodiscard]] extern bool
IndirectEval(JSContext* cx, unsigned argc, Value* vp);
// Performs a direct eval of |v| (a string containing code, or another value
// that will be vacuously returned), which must correspond to the currently-
// executing stack frame, which must be a script frame.
-extern MOZ_MUST_USE bool
+[[nodiscard]] extern bool
DirectEval(JSContext* cx, HandleValue v, MutableHandleValue vp);
// Performs a direct eval called from Ion code.
-extern MOZ_MUST_USE bool
+[[nodiscard]] extern bool
DirectEvalStringFromIon(JSContext* cx,
HandleObject scopeObj, HandleScript callerScript,
HandleValue newTargetValue, HandleString str,