Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28036
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!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: What is this inside a function? |
| Date | Sun, 07 Jun 2015 23:48:04 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 24 |
| Message-ID | <4280548.92UKxee3U8@PointedEars.de> (permalink) |
| References | <55745377$0$12997$c3e8da3$5496439d@news.astraweb.com> <878ubvjqgp.fsf@bsb.me.uk> |
| 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 1433713845 22568 eJwNwokRwCAMA7CV8jowjgnN/iPQk9Kh6AokIienp6KtTzqXjum+BGRt/r7rQTFxXuqcMjF/JNERGg== (7 Jun 2015 21:50:45 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 7 Jun 2015 21:50:45 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBwDAEBMCVyHtiHKL2H6F3hKu/MKcbl7siGCdu+BSeJCw+3T4dzLyx7AOtz07YqaFJdY8CCs9I/QE2tBRu |
| Cancel-Lock | sha1:ttpAQ2CL0P1ykogT/B1tG1LSEe8= |
| X-NNTP-Posting-Host | eJwNx8kBwDAIA7CVoAQbxsnl/UdI9VMGHJsDiZFKGd1t9vw6pLGIyEOq5Pug+gZd/1nLrkz9AA7FEPI= |
| Xref | csiph.com comp.lang.javascript:28036 |
Show key headers only | View raw
Ben Bacarisse wrote: > The expression new F(...args...) calls the [[Contruct]] internal method > on F and that method is defined to bind this to an empty object. The > [[Construct]] method goes on to call the [[Call]] internal method so the > main difference between new F(...args...) and F(...args...) is this > special binding for that. > > (This is not the correct terminology because 'this' is not a name has no > bindings, Parse error. > but it simpler to put it this way.) <http://ecma-international.org/ecma-262/5.1/#sec-11.1.1> | The “this” keyword evaluates to the value of the <ThisBinding> of the | current execution context. -- 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 | Find similar | Unroll thread
What is this inside a function? Steven D'Aprano <steve@pearwood.info> - 2015-06-08 00:21 +1000
Re: What is this inside a function? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-06-07 19:58 +0100
Re: What is this inside a function? "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-07 21:19 +0200
Re: What is this inside a function? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-06-07 20:43 +0100
Re: What is this inside a function? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-08 01:08 +0200
Re: What is this inside a function? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-12 19:19 +0200
Re: What is this inside a function? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-07 23:48 +0200
csiph-web