quickjs-ng / quickjs

QuickJS, the Next Generation: a mighty JavaScript engine
MIT License
687 stars 66 forks source link

New apis from upstream #401

Open chqrlie opened 1 month ago

chqrlie commented 1 month ago

cherry-picked 2 simple commits from upstream:

saghul commented 1 month ago

Perhaps we should revisit the Uint8Array specific functions we added at some point.

chqrlie commented 1 month ago

Perhaps we should revisit the Uint8Array specific functions we added at some point.

Indeed, I am not sure about the arguments to C API JS_NewTypedArray. It should probably take a length and a const void * to optionally initialize the array contents.

saghul commented 6 days ago

Shall we land this? We can improve the APIs once in?