-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type checks for typed arrays and array buffers. #291
base: master
Are you sure you want to change the base?
Conversation
I just found myself in need of this as well, thanks! 🙌 It'd be great if the function could also take a |
40a7281
to
adc36c9
Compare
I can do this as well, any objections from reviewers @saghul? |
No objections from me, but I would handle that in a separate PR. |
I would favor an API that retrieves the typed array type, length and data address. A generalized version of As a matter of fact, this would make
|
OK, I have no objection. Will update. |
Do we still want to check for proxy case here, given that JS_GetTypedArrayBuffer does not do that? |
adc36c9
to
c02bd3a
Compare
Unlike JS_GetArrayBuffer() it does not throw an exception if `val` is not an array buffer.
c02bd3a
to
696fadb
Compare
The change is approved, but not merged. Any plans to align this PR with #294? |
Yes, we are discussing prototypes... Trying to cook an API in a hurry does not work. We have to let it simmer for a few days |
Agree. I have no problem with it. Just let me know of your intentions, it is enough. |
Retrieves the current time zone settings with GetTimeZoneInformation to calculate time zone offset
No description provided.