Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Expression for the global object Date: Sun, 31 May 2015 16:18:34 +0200 Organization: PointedEars Software (PES) Lines: 28 Message-ID: <6342988.ILlWh6QtbD@PointedEars.de> References: <645d86ba-2299-4371-bb64-90dae6df316a@googlegroups.com> <5567f976$0$12987$c3e8da3$5496439d@news.astraweb.com> <87k2vrmxr4.fsf@bsb.me.uk> <15438118.NDL39TPNyL@PointedEars.de> <55685287$0$13007$c3e8da3$5496439d@news.astraweb.com> <87382fmqoq.fsf@bsb.me.uk> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1433082072 25647 eJwFwYEBwCAIA7CXqNDizsEh/59gQhf0Z4gKDmewwjUrLhsEOrVLt31/VmaJw/S6kfQT3fMAB50Qmw== (31 May 2015 14:21:12 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 31 May 2015 14:21:12 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BL5Qsgp9DFv4TdhUGw6Qh4MLhdMgmIGaeR4sy6FOVqmbp1TOqgyPNq8903ffKbp5AD/QE81RUT Cancel-Lock: sha1:D9rie6MkpY36UcqsnNL/l0fKtt0= X-NNTP-Posting-Host: eJwNyMkBwDAIA7CVCIdpxoGC9x+h1VNhOHjTEfBgMCncvTKLHq8zluUQ6+dSRSqQvare/CvSPyuaES4= Xref: csiph.com comp.lang.javascript:27943 Ben Bacarisse wrote: > Function("{return this;}").call(null) “.call(null)” is equivalent to “()” here. > but it does not solve the original problem as the the identifier > 'Function' is as unreliable as the original 'Math'. That, too. >> It seems to work in Rhino: >> […] > Yes, but rhino […], I think, follows version 3 of the language standard. It implements _Edition_ 3, see the timeline in the ES Matrix. > […] > (Installing nodejs will give you a much more up-to-date ES environment, > and one with very may more library modules.) One capable of several ES 6 features by now. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.