diff --git a/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp b/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp index 10765ede2a..22989fd162 100644 --- a/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp +++ b/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp @@ -49,11 +49,11 @@ {%- match func.cpp_return_by() %} {%- when ReturnBy::OutParam with (name, type_) %} DebugOnly ok_ = {{ type_|lift_cpp(result, name, context) }}; - MOZ_RELEASE_ASSERT(ok_); + MOZ_ASSERT(ok_); {%- when ReturnBy::Value with (type_) %} {{ type_|type_cpp(context) }} retVal_; DebugOnly ok_ = {{ type_|lift_cpp(result, "retVal_", context) }}; - MOZ_RELEASE_ASSERT(ok_); + MOZ_ASSERT(ok_); return retVal_; {%- when ReturnBy::Void %}{%- endmatch %} {%- endmacro -%}