fix fetch
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user