fix fetch

This commit is contained in:
2026-01-09 11:49:22 -06:00
parent 86a70bce3a
commit f16586eaa2
6 changed files with 130 additions and 68 deletions

View File

@@ -39142,6 +39142,7 @@ JSValue js_new_blob_stoned_copy(JSContext *js, void *data, size_t bytes)
void *js_get_blob_data(JSContext *js, size_t *size, JSValue v)
{
blob *b = js_get_blob(js, v);
*size = (b->length + 7) / 8;
if (!b) {
JS_ThrowReferenceError(js, "get_blob_data: not called on a blob");
return NULL;
@@ -39157,7 +39158,6 @@ void *js_get_blob_data(JSContext *js, size_t *size, JSValue v)
return NULL;
}
*size = (b->length + 7) / 8;
return b->data;
}