update shop
This commit is contained in:
@@ -43,6 +43,12 @@ JSC_CCALL(os_mailbox_push,
|
||||
*/
|
||||
size_t size;
|
||||
void *data = js_get_blob_data(js, &size, argv[1]);
|
||||
if (data == (void*)-1) {
|
||||
return JS_EXCEPTION;
|
||||
}
|
||||
if (size == 0) {
|
||||
return JS_ThrowInternalError(js, "No data present in blob");
|
||||
}
|
||||
|
||||
// Create a new blob and copy the data
|
||||
blob *msg_blob = blob_new(size * 8); // Convert bytes to bits
|
||||
|
||||
Reference in New Issue
Block a user