[Bug 23369] Provide hooks for Typed Arrays (ArrayBuffer and friends)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23369

--- Comment #35 from Allen Wirfs-Brock <allen@wirfs-brock.com> ---
(In reply to Domenic Denicola from comment #34)

> 
> So I believe Allen is suggesting something like
> 
> var ab = new ArrayBuffer(1024);
> ArrayBuffer.makeImmutable(ab);
> crypto.subtle.encrypt(ab); // works
> 
> var ab2 = new ArrayBuffer(1024);
> crypto.subtle.encrypt(ab); // rejects with TypeError saying it needs to be
> immutable.

exactly, except that I would probably  design the ArrayBuffer API such that the
second line would be:
  ab.makeImmutable();

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 18 June 2014 17:54:18 UTC