summaryrefslogtreecommitdiff
path: root/js/src/vm/ArrayBufferObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/ArrayBufferObject.h')
-rw-r--r--js/src/vm/ArrayBufferObject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/vm/ArrayBufferObject.h b/js/src/vm/ArrayBufferObject.h
index f4010c6c77..31aae59d06 100644
--- a/js/src/vm/ArrayBufferObject.h
+++ b/js/src/vm/ArrayBufferObject.h
@@ -339,16 +339,16 @@ class ArrayBufferObject : public ArrayBufferObjectMaybeShared
// WebAssembly support:
static ArrayBufferObject* createForWasm(JSContext* cx, uint32_t initialSize,
mozilla::Maybe<uint32_t> maxSize);
- static MOZ_MUST_USE bool prepareForAsmJS(JSContext* cx, Handle<ArrayBufferObject*> buffer,
+ [[nodiscard]] static bool prepareForAsmJS(JSContext* cx, Handle<ArrayBufferObject*> buffer,
bool needGuard);
size_t wasmMappedSize() const;
mozilla::Maybe<uint32_t> wasmMaxSize() const;
- static MOZ_MUST_USE bool wasmGrowToSizeInPlace(uint32_t newSize,
+ [[nodiscard]] static bool wasmGrowToSizeInPlace(uint32_t newSize,
Handle<ArrayBufferObject*> oldBuf,
MutableHandle<ArrayBufferObject*> newBuf,
JSContext* cx);
#ifndef WASM_HUGE_MEMORY
- static MOZ_MUST_USE bool wasmMovingGrowToSize(uint32_t newSize,
+ [[nodiscard]] static bool wasmMovingGrowToSize(uint32_t newSize,
Handle<ArrayBufferObject*> oldBuf,
MutableHandle<ArrayBufferObject*> newBuf,
JSContext* cx);