You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blob is a part of Web API (File API spec), not a JS primitive.
It is actually an outer class and has more complex semantics at the prototype level than JS primitives. Handling this safely will add tons of complexity to the compiler.
As we discussed before (rescript-lang/rescript-core#240), I think it's not a good long-term direction for the compiler to add specializations for specific environments, because it bloats the compiler code, reduces configurability, and limits future enhancements.
If it cannot be extended in a generalized way, it should be kept to a minimum as possible.
I'm trying to model
blobParts
of https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#blobparts for the new WebAPI bindings.However, I cannot use
ArrayBuffer.t
andTypedArray.t
in combination with the@unboxed
.Could some of these be extended?
The text was updated successfully, but these errors were encountered: