Closed xeioex closed 6 months ago
@xeioex: After further thinking, I am not sure about the arguments to C API JS_NewTypedArray: It should probably take a size_t length and a const void * to optionally initialize the array contents. argc + argv is for JavaScript methods.
JS_NewTypedArray
size_t length
const void *
argc
argv
What is your use case?
@chqrlie
Agree, size_t length and a const void * to optionally initialize the array contents is suffice for my case.
I will prepare the updated API and PR.
@xeioex: After further thinking, I am not sure about the arguments to C API
JS_NewTypedArray
: It should probably take asize_t length
and aconst void *
to optionally initialize the array contents.argc
+argv
is for JavaScript methods.What is your use case?