Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <8635315.16DEVHx3j1@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 28 Oct 2012 17:12:54 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <67583587.7BbXikoxoM@PointedEars.de> <3102322.j8kCu7WbkW@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 29 NNTP-Posting-Date: 28 Oct 2012 17:12:55 CET NNTP-Posting-Host: e4feb429.newsspool3.arcor-online.net X-Trace: DXC=LRU>6QmJ??dJ00P1S40fZgMcF=Q^Z^V3h4Fo<]lROoRa8kFK`B8XYjY^ThSf5WFSC2B2_Mh X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:16924 Cezary Tomczyk wrote: > W dniu 2012-10-25 00:03, Thomas 'PointedEars' Lahn pisze: > [...] >> if (String.prototype.propertyIsEnumerable("trim")) > > Quick results from Google Chrome 22.0.1229.94 console. Unreadable. What is your input, what V8's output? Which OS and platform? > In both of cases means that object can not be enumerated by a for[...]in > loop. And as I understand it correctly this doesn't help with determine > if method is really built-in or not. Possible; whether property attributes are retained is implementation- dependent. But now that you know that *you* can overwrite String.prototype.trim(), a solution to your problem should present itself. > Or maybe I missed something? Hm... Equally possible. PointedEars -- Sometimes, what you learn is wrong. If those wrong ideas are close to the root of the knowledge tree you build on a particular subject, pruning the bad branches can sometimes cause the whole tree to collapse. -- Mike Duffy in cljs,