ArrayBuffer neutering

Anne van Kesteren annevk at
Tue May 20 07:37:36 PDT 2014

"ArrayBuffer instances whose [[ArrayBufferData]] is null are
considered to be neutered" However, most algorithms only check for it
being undefined (and sometimes missing).

In addition, the behavior defined seems incompatible with what is in browsers:
 var a = new ArrayBuffer(12)
 onmessage = function(e) { w(; w(; w(a);
w(a.byteLength) }
 postMessage(a, "", [a])

The above will log:

object "[object ArrayBuffer]" (0 props)
object "[object ArrayBuffer]" (0 props)

And not throw a TypeError as suggested.


More information about the es-discuss mailing list