Re: Can DOM methods be native Function objects?

2010-10-11 Thread Cameron McCormack
Mark S. Miller: It is really a terrible shame this is all so confusing. Part of the problem is terminology wrongly suggesting other meanings. host simply means non-native. Garrett Smith: How do you figure? I'm looking at the definition for host object (s 4.3.8) and it doesn't say anything

Re: Can DOM methods be native Function objects?

2010-10-11 Thread Garrett Smith
On 10/10/10, Mark S. Miller erig...@google.com wrote: On Mon, Oct 11, 2010 at 5:54 AM, Garrett Smith dhtmlkitc...@gmail.comwrote: [...] And that brings me to my next point: AIUI, host objects have two types. We discussed this before... (searching archives...) | The specification allows for

Re: Proxies: get+fn vs. invoke

2010-10-11 Thread Tom Van Cutsem
This is odd, I didn't see the original message you were replying to. To respond to the question you posed in the syntax for efficient traits-thread: Yes, I do. The latest is magic methods directly on objects (possibly you saw -- http://gist.github.com/617338; I don't know what again with

Re: Proxies: get+fn vs. invoke

2010-10-11 Thread Dmitry A. Soshnikov
On 11.10.2010 18:18, Tom Van Cutsem wrote: This is odd, I didn't see the original message you were replying to. Yes, really odd. It's not the first time when the archive-server looses letters. OK, here is original letter sent before (the main question is not in magic methods directly on

Re: Proxies: get+fn vs. invoke

2010-10-11 Thread Dmitry A. Soshnikov
On 11.10.2010 22:45, Tom Van Cutsem wrote: Where this proposal is described? I didn't see it. I'll support it. Even if the committee won't agree on noSuchMethod, it'd at least will be great to have a parametrized get. Though, repeat, IMO, a separated method for this case is

hoisting past catch

2010-10-11 Thread David Herman
ES3 `catch' is block-scoped. At the last face-to-face, we talked about statically disallowing var-declarations from hoisting past let-declarations: function f() { { let x = inner; { var x = outer; // error: redeclaration } }