Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiltd committed Nov 6, 2024
1 parent 5bc873f commit 9a7798a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtins/web/blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ bool Blob::text(JSContext *cx, unsigned argc, JS::Value *vp) {

bool had_replacements;
auto dst_data = reinterpret_cast<uint16_t *>(dst.get());
auto ret = jsencoding::decoder_decode_to_utf16(decoder, src->data(), &src_len, dst_data, &dst_len,
true, &had_replacements);

MOZ_ASSERT(ret == 0);
jsencoding::decoder_decode_to_utf16(decoder, src->data(), &src_len, dst_data, &dst_len, true,
&had_replacements);


JS::RootedString str(cx, JS_NewUCString(cx, std::move(dst), dst_len));
if (!str) {
Expand Down

0 comments on commit 9a7798a

Please sign in to comment.