W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 18 Jun 2014 17:54:17 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23369-3890-gm4URZ6xOD@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC