diff options
Diffstat (limited to 'js/src/jit/ExecutableAllocator.h')
-rw-r--r-- | js/src/jit/ExecutableAllocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jit/ExecutableAllocator.h b/js/src/jit/ExecutableAllocator.h index c16809c818..7932602c79 100644 --- a/js/src/jit/ExecutableAllocator.h +++ b/js/src/jit/ExecutableAllocator.h @@ -190,13 +190,13 @@ class ExecutableAllocator static void reprotectPool(JSRuntime* rt, ExecutablePool* pool, ProtectionSetting protection); public: - MOZ_MUST_USE + [[nodiscard]] static bool makeWritable(void* start, size_t size) { return ReprotectRegion(start, size, ProtectionSetting::Writable); } - MOZ_MUST_USE + [[nodiscard]] static bool makeExecutable(void* start, size_t size) { return ReprotectRegion(start, size, ProtectionSetting::Executable); |