diff options
Diffstat (limited to 'js/src/wasm/WasmTextToBinary.h')
-rw-r--r-- | js/src/wasm/WasmTextToBinary.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/wasm/WasmTextToBinary.h b/js/src/wasm/WasmTextToBinary.h index 1d16517586..7e5dce6db9 100644 --- a/js/src/wasm/WasmTextToBinary.h +++ b/js/src/wasm/WasmTextToBinary.h @@ -1,6 +1,7 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * Copyright 2015 Mozilla Foundation + * Copyright 2023 Moonchild Productions * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +28,7 @@ namespace wasm { // null-terminated char16_t array) into serialized bytes. If there is an error // other than out-of-memory an error message string will be stored in 'error'. -extern MOZ_MUST_USE bool +[[nodiscard]] extern bool TextToBinary(const char16_t* text, Bytes* bytes, UniqueChars* error); } // namespace wasm |