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 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> References: <55745377$0$12997$c3e8da3$5496439d@news.astraweb.com> <878ubvjqgp.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 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 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.) | The “this” keyword evaluates to the value of the of the | current execution context. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.