[Bug 27955] share an immutable object between threads

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

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
> There is already Object.freeze which works on ArrayBuffer

Object.freeze on an ArrayBuffer doesn't prevent mutation of its data:

  var buf = new ArrayBuffer(1);
  var view = new Uint8Array(buf);
  view[0] = 5;
  alert(view[0]);
  Object.freeze(buf);
  view[0] = 7;
  var view2 = new Uint8Array(buf);
  alert(view2[0]);

dherman's proposal is a strict superset of yours, looks like; I think it ran
into implementation difficulties...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 5 February 2015 14:21:03 UTC