On 20/11/2010, at 11:07, RobG wrote: > On Nov 19, 7:55 pm, Jorge Chamorro <[email protected]> wrote: >> On 18/11/2010, at 00:46, RobG wrote: >>> ... window is a host object ... >> >> Please stop spreading FUD. Seehttp://www.w3.org/TR/Window/ >> >> "This specification defines the Window object, which provides the global >> namespace for web scripting languages" > > The W3C does not define language features of ECMAScript, ECMA does. > Never the less, the window object described above is, by the > definition provided in the ECMAScript Language Specification, a host > object. > > "...an ECMAScript program will provide not only the objects and other > facilities described in this specification but also certain > environment-specific host objects, whose description and behaviour are > beyond the scope of this specification..." > > ECMA-262 ed 3, section 4. > > And in section 11.4.3 is states that the value returned by a typeof > test on a host object is implementation-dependent.
Quoting Mr. Brendan Eich, here, FYI : "The ECMAScript global object is not on the prototype chain of some other (Window) really-global object. The two are the same (which means Window must not be a "host object" in ES5 terms; see 8.6.2). ECMA-262 requires builtins such as parseInt and eval to be "own" properties of the global object (|this| in global code, AKA |window| and |self| in browsers)." Cheers, RobG ! :-) -- Jorge. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
