W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: Figuring out easier readonly interfaces

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 02 Oct 2013 17:17:56 -0400
Message-ID: <524C8D84.70404@mit.edu>
To: public-script-coord@w3.org
On 10/2/13 5:10 PM, Tab Atkins Jr. wrote:
> From what I can tell, the easiest way to do this is to use a Proxy
> around the mutable instance, which intercepts the "set" and
> "deleteProperty" traps (and maybe "defineProperty"?) and cancels them,
> and forwards the rest of the traps.

So directly .apply()-ing a setter gotten off the prototype would still 
mutate the object?

-Boris
Received on Wednesday, 2 October 2013 21:18:23 UTC

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