[Bug 5850] JS global object

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5850


Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cam@mcc.id.au




--- Comment #13 from Cameron McCormack <cam@mcc.id.au>  2008-07-18 07:30:30 ---
I don't know if just adding that wording I suggested would give the behaviour
that Adam describes.  Various places in ECMA-262 refer to the global object. 
For example if you do:

  (function() { return this })()

then what's returned must be the global object.  It wouldn't be consistent with
ECMA-262 to return some other object (like this window shell object).


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 18 July 2008 07:31:07 UTC