This commit is contained in:
2025-06-11 18:52:56 -04:00
parent 3c17810747
commit 8143a23ced
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@
** @{
*/
#include "quickjs.h"
typedef struct JSContext JSContext;
/**
** An HTTP server instance.

View File

@ -500,8 +500,7 @@ void tf_util_document_settings(const char* line_prefix)
JSValue tf_util_new_uint8_array(JSContext* context, const uint8_t* data, size_t size)
{
JSValue array_buffer = JS_NewArrayBufferCopy(context, data, size);
JSValue args[] =
{
JSValue args[] = {
array_buffer,
JS_NewInt64(context, 0),
JS_NewInt64(context, size),