bellard / quickjs

Public repository of the QuickJS Javascript Engine.
https://bellard.org/quickjs
Other
8.55k stars 895 forks source link

Improve JS_GetArrayBuffer #361

Open jiangjieke opened 1 month ago

jiangjieke commented 1 month ago

Given that JS_GetTypedArrayBuffer can accept NULL pointers, allowing JS_GetArrayBuffer to do the same would improve interface consistency. https://github.com/bellard/quickjs/blob/master/quickjs.c#L53444-L53447