[quickjs-devel] Re: Making JS_NewUint32 public?

  • From: Fabrice Bellard <fabrice@xxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Thu, 20 Feb 2020 21:17:05 +0100

Hi,

I agree it should be exported. JS_NewInt64() can be used instead but it
is less explicit.

Best regards,

Fabrice.

On 2/20/20 11:07 AM, Saúl Ibarra Corretgé wrote:

Hey there,

I have a library which returns uint32_t values, and I need to convert
them to JS numbers. I noticed JS_NewInt32 is public but JS_NewUint32
isn't. I can roll my own, as it's just a few lines, but it would be
handy if it were public. Is there a specific reason why this is isn't
the case?


Cheers,



Other related posts: