Rudimentary support for building the executable with data attached. Pushed some things around in the makefile to fix issues along the way. #46

This commit is contained in:
2024-03-25 13:50:17 -04:00
parent fb704a5b83
commit 15c9f8f458
4 changed files with 32 additions and 18 deletions

View File

@ -316,7 +316,9 @@ static void _file_read_file_zip_after_work(uv_work_t* work, int status)
tf_trace_begin(trace, "file_read_zip_after_work");
if (data->result >= 0)
{
tf_task_resolve_promise(data->task, data->promise, tf_util_new_uint8_array(data->context, data->buffer, data->result));
JSValue array = tf_util_new_uint8_array(data->context, data->buffer, data->result);
tf_task_resolve_promise(data->task, data->promise, array);
JS_FreeValue(data->context, array);
}
else
{