update shop

This commit is contained in:
2025-12-03 15:29:42 -06:00
parent 85e0e3dab1
commit 1769d7f456
16 changed files with 342 additions and 317 deletions

View File

@@ -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