Re: var declarations shadowing properties from Window.prototype

2012-08-12 Thread Cameron McCormack
Boris Zbarsky: Per the current spec proposal, the GSP lives on the proto chain and exposes the various id/name stuff as own properties on itself, with the usual caveats about checking up the proto chain first that DOM named access has. See

Re: var declarations shadowing properties from Window.prototype

2012-08-11 Thread Cameron McCormack
Are we talking just about attributes here, and not operations? So Window.prototype.open would still exist and there'd be no own open property on window? ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: var declarations shadowing properties from Window.prototype

2012-08-11 Thread Cameron McCormack
Jonas Sicking: Webkit also puts attributes on objects for non-globals, but I'm not promoting that behavior. Nor do I know of any benefits regarding web compatibility that comes with that behavior. Brendan Eich: Ok, that's what I was getting at. It may be that this is just historical

Re: var declarations shadowing properties from Window.prototype

2012-08-11 Thread Cameron McCormack
Brendan Eich: As bz and others point out, the object detection w/ var pattern can arise for operations, e.g. for requestAnimationFrame, using the same var requestAnimationFrame = window.mozRequestAnimationFrame || ... || window.requestAnimationFrame; pattern. So WebIDL operations (JS

Re: var declarations shadowing properties from Window.prototype

2012-08-11 Thread Cameron McCormack
Kyle Huey: Can we leave EventTarget's methods on the proto chain and only move the ones on the Window interface itself? Unlike Window, EventTarget isn't changing very much. We could. You're right it's not changing much, but I wouldn't want to box ourselves in to not being able to extend it

Re: var declarations shadowing properties from Window.prototype

2012-08-11 Thread Cameron McCormack
Brendan Eich: As noted, they started out that way 17 years ago. I think WebIDL and interface-based method definition made onload, e.g., predefined on window objects, or more recently on Window.prototype. Was this useful? Was it intended specifically (for window, not just intended generally due

Re: New full Unicode for ES6 idea

2012-02-19 Thread Cameron McCormack
Brendan Eich: To hope to make this sideshow beneficial to all the cc: list, what do DOM specs use to talk about uint16 units vs. code points? I say code unit as a shorter way of saying 16 bit unsigned integer code unit http://dev.w3.org/2006/webapi/WebIDL/#dfn-code-unit (which DOM4 also

Re: Instance constructors

2011-10-10 Thread Cameron McCormack
On 24/09/11 8:35 AM, Allen Wirfs-Brock wrote: Regarding, WebIDL. It seems to me, that it just needs an extended attribute to specifies which attributes are instance attributes rather than prototype attributes. I think it only makes sense to have IDL attributes correspond to properties on

Re: May the defineProperty method of a proxy handler throw a TypeError?

2011-08-15 Thread Cameron McCormack
On 15/08/11 8:58 PM, Tom Van Cutsem wrote: So, to future-proof if this strawman is accepted, I think it's best to let existing |defineProperty| traps |return true;|. By that do you mean interpret an undefined return value as meaning don't throw? Sounds reasonable.

Re: May the defineProperty method of a proxy handler throw a TypeError?

2011-08-10 Thread Cameron McCormack
On 9/08/11 9:40 AM, Mark S. Miller wrote: If there are no show-stopping legacy compat constraints forcing us to specify Reject, I prefer that we specify these to throw a TypeError. I can't say for sure, but I would be surprised if this didn't cause problems, given that it introduces exception

Fw: RfC: Last Call Working Draft of Web IDL; deadline August 23

2011-07-12 Thread Cameron McCormack
message - -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: [Harmony Proxies] Proposal: Property fixing

2011-06-16 Thread Cameron McCormack
on a native Array object (or a subclass of one). -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: [Harmony Proxies] Proposal: Property fixing

2011-05-12 Thread Cameron McCormack
proxies over this hurdle? -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: [Harmony Proxies] Proposal: Property fixing

2011-05-12 Thread Cameron McCormack
, but possible anyway. True, that would be one way around it. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: [Harmony Proxies] Proposal: Property fixing

2011-05-12 Thread Cameron McCormack
, but requires changes to the Object.prototype.toString definition. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Fw: [WebIDL] summary of topics discussed at TC39 meeting

2010-11-23 Thread Cameron McCormack
[Please follow up to public-script-co...@w3.org, thanks.] - Forwarded message from Cameron McCormack c...@mcc.id.au - From: Cameron McCormack c...@mcc.id.au Date: Wed, 24 Nov 2010 15:54:38 +1300 To: public-script-co...@w3.org Subject: [WebIDL] summary of topics discussed at TC39 meeting

Web IDL discussions

2010-11-19 Thread Cameron McCormack
-script-coord some time over the next few days with a sumamry of the rest of the Web IDL related discussions we had. Thanks, Cameron -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org

Re: Can DOM methods be native Function objects?

2010-10-11 Thread Cameron McCormack
? If not, and if this (Mark’s) interpretation is meant to be the correct one, then I’d suggest that note be changed in an erratum to say this explicitly. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https

Re: Wanted: Editor for Web IDL spec

2010-07-28 Thread Cameron McCormack
and the ones that are currently identified in the document * publish a LCWD Thanks, Cameron -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: simple shorter function syntax

2010-07-26 Thread Cameron McCormack
Cameron McCormack: mapPairs(someObject, { (a, b) = a + '=' + b) }); Maciej Stachowiak: If you allow multiple arguments with this syntax, either with or without parens, you're back to unbounded lookahead required for an LL parser. Shouldn’t be. Take the parens required option. After

Re: Web IDL Garden Hose (was: ECMA TC 39 / W3C HTML and WebApps WG coordination)

2009-09-27 Thread Cameron McCormack
to build on, then yeah it seems like most things can be done (from Maciej’s quick analysis). The array like objects do seem like a useful pattern for authors to use, though. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss

Re: WebIDL

2009-09-26 Thread Cameron McCormack
IDL that exist solely for quirky compatibility reasons, that would help to discourage their use in other specs. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Web IDL Garden Hose (was: ECMA TC 39 / W3C HTML and WebApps WG coordination)

2009-09-26 Thread Cameron McCormack
? -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Web IDL Garden Hose (was: ECMA TC 39 / W3C HTML and WebApps WG coordination)

2009-09-26 Thread Cameron McCormack
Cameron McCormack: Indeed, much of the custom [[Get]] etc. functionality can be turned into ES5 meta-object stuff.  A pertinent question is then: should we change Web IDL to specify an ES5 binding (and not ES3) at this point, given that specs depending on it want to advance along the Rec

Re: ECMA TC 39 / W3C HTML and WebApps WG coordination

2009-09-25 Thread Cameron McCormack
pretty much just so that ‘in’ and hasOwnProperty return true for array index properties, which is needed for HTMLCollection and the like. (Cross-posting to these three lists makes me feel funny, although I recognise that these issues involve all three groups.) -- Cameron McCormack ≝ http

Re: WebIDL

2009-09-25 Thread Cameron McCormack
for them! Cameron -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: WebIDL

2009-09-25 Thread Cameron McCormack
that the overload resolution stuff is too convoluted and could do with some rewriting to be clearer. I wonder how much is inherent to the complexity of the issue and how much is just the presentation... Perhaps a bit of both. -- Cameron McCormack ≝ http://mcc.id.au

Re: ECMA TC 39 / W3C HTML and WebApps WG coordination

2009-09-25 Thread Cameron McCormack
, though it is defined. If [OverrideBuiltins] is on the interface, then toString is taken as a a named property; otherwise, it’s the property from the Storage prototype object. This is handled by the host object [[Get]] method: http://dev.w3.org/2006/webapi/WebIDL/#get -- Cameron McCormack ≝ http

Re: WebIDL

2009-09-25 Thread Cameron McCormack
Maciej Stachowiak: JS numbers are IEEE doubles, not singles (modulo the indistinguishability of different NaNs and other such details). Right, my mistake. -- Cameron McCormack ≝ http://mcc.id.au/ ___ es-discuss mailing list es-discuss@mozilla.org

Re: ECMA TC 39 / W3C HTML and WebApps WG coordination

2009-09-24 Thread Cameron McCormack
Hi everyone. Sam Ruby: At the upcoming TPAC, there is an opportunity for F2F coordination between these two groups, and the time slot between 10 O'Clock and Noon on Friday has been suggested for this. I'm travelling at the moment, so apologies for the delay in replying. Unfortunately I

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread Cameron McCormack
/2008OctDec/0377.html and an issue has been raised: http://lists.w3.org/Archives/Public/public-svg-wg/2008OctDec/0384.html -- Cameron McCormack ≝ http://mcc.id.au/ ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es