Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27928
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Expression for the global object |
| Date | Sat, 30 May 2015 15:25:47 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 30 |
| Message-ID | <16889332.y9n2pRrfs3@PointedEars.de> (permalink) |
| References | <JavaScript-20150528222318@ram.dialup.fu-berlin.de> <645d86ba-2299-4371-bb64-90dae6df316a@googlegroups.com> <cspehuFliqhU1@mid.uni-berlin.de> <34dd9685-0b20-4a75-8283-d8b0319ad126@googlegroups.com> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1432992506 24963 eJwVwoERADEEBMCWhHNGOST0X8LPz64bD2+ATvj+MscCTdFayjbnhjykmWUA00ehU692BvwAGA0ROg== (30 May 2015 13:28:26 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sat, 30 May 2015 13:28:26 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNwgERwDAIA0BLEErayVkJ+Jew3X8GnbUXkyvnd9oHT5Dt3Ygo7WLQ5upAOx16l4shyKhrVqBfjLIM8QFMBBVH |
| Cancel-Lock | sha1:+DFoMZfQELkEnJUdhLM4TEza6b8= |
| X-NNTP-Posting-Host | eJwFwYERADAEBLCVqMcZx2vtP0ITt9CYRHjA11eErCkbNkhdVcAez0oyDemNK13avNzT8QEmCRGb |
| Xref | csiph.com comp.lang.javascript:27928 |
Show key headers only | View raw
Michael Haufe (TNO) wrote:
> On Thursday, May 28, 2015 at 4:10:28 PM UTC-5, Stefan Ram wrote:
>> "Michael Haufe (TNO)" writes:
>> >On Thursday, May 28, 2015 at 3:27:31 PM UTC-5, Stefan Ram wrote:
>> >[...]
>> >>What is the smallest scope- and host-independent expression
>> >>whose value is the global object?
>>
>> >g
>>
>> >where g defined in a scope without "use strict" as the expression:
>> >(function(){return this}).call(null)
>>
>> Thank you! But I deem the value of the expression »g« not to
>> be scope independent because an inner scope might redefine »g«.
>
> define it as a constant then.
>
> const g = ...
That does not solve the (imagined) problem (that Stefan is looking for for
his solution). In fact, it creates another one regarding compatibility,
contrary to the requirement “host-independent”.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Expression for the global object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-05-28 13:49 -0700
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-28 22:59 +0200
Re: Expression for the global object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-05-29 07:24 -0700
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-29 17:24 +0200
Re: Expression for the global object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-05-30 06:07 -0700
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-30 15:20 +0200
Re: Expression for the global object Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-30 11:23 -0300
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-30 19:05 +0200
Re: Expression for the global object Steven D'Aprano <steve@pearwood.info> - 2015-05-29 15:30 +1000
Re: Expression for the global object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-29 12:25 +0100
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-29 13:33 +0200
Re: Expression for the global object Steven D'Aprano <steve@pearwood.info> - 2015-05-29 21:50 +1000
Re: Expression for the global object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-29 14:57 +0100
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-31 16:18 +0200
Re: Expression for the global object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-05-29 07:31 -0700
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-30 15:25 +0200
Re: Expression for the global object Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-30 18:56 +0200
csiph-web