W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] Spec for location object needs to make some properties unforgeable; need supporting WebIDL changes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 28 Sep 2012 00:50:06 -0400
Message-ID: <50652C7E.601@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>
Cc: whatwg@lists.whatwg.org
On 9/28/12 12:44 AM, Cameron McCormack wrote:
> What about other functions from Object.prototype, by the way?
> toLocaleString, watch, hasOwnProperty, etc.?  If there are a bunch of
> properties (that don't correspond to IDL members) that need protecting,
> maybe handling it in [DefineOwnProperty] is the simplest thing to do.

I don't think the rest of those need protecting for Location.  And 
simply making valueOf an own non-configurable property is a lot simpler 
than creating yet another custom [DefineOwnProperty] implementation, at 
least in Gecko, and has the benefit of not being weird magic from the 
point of view of the web page.  I can't speak for other implementations...

Received on Friday, 28 September 2012 04:50:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC