On Mon, Jul 3, 2017 at 8:10 PM, Steve Fink <[email protected]> wrote: > TypedObjects are exactly what you want for this sort of use case, and are > really quite nice. I'm no expert, but TypedArrays probably ought to be > subsumed by the TypedObject spec since AFAICT they are a proper subset of > TypedObject arrays, at least for practical purposes. >
I looked into whether this is feasible, and unfortunately I'm not optimistic. For one, the current TypedObjects proposal has __proto__ read-only, which we could certainly not do for TypedArray classes. But ok, they might be exceptional in that regard, I guess. Even if you strip away everything else, simply the change in prototype chains might not be web-compatible, though. Still, it's certainly something that should be tried if and when the proposal gets un-stalled.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

