@@toStringTag spoofing for null and undefined

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Jan 28 16:55:15 PST 2015


On Jan 28, 2015, at 4:40 PM, John-David Dalton <john.david.dalton at gmail.com> wrote:

> Kind of a bummer. The isTypedArray example from  https://esdiscuss.org/topic/tostringtag-spoofing-for-null-and-undefined#content-59 is incorrect. Is there an updated reference somewhere?
> The toStringTag result is handy because it allows checking against several tags at once without having to invoke multiple functions each with their own try-catch and all that perf baggage.
How is it incorrect?  Are you referring to the fact that both typed arrays and DataView objects have a [[ViewedArrayBuffer]] internal slot.  If so, I think this is a specification but that I should fix.

Allen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150128/8a572d01/attachment-0001.html>


More information about the es-discuss mailing list