Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2182953.ZuCaxiteiE@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 31 Mar 2013 18:26:28 +0200 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 59 NNTP-Posting-Date: 31 Mar 2013 18:26:28 CEST NNTP-Posting-Host: 7e5b79af.newsspool3.arcor-online.net X-Trace: DXC=@7ck6:dm2G;i6K;>iZ]763McF=Q^Z^V384Fo<]lROoR18kF]gf>oR]F7eR\58> X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:19074 patrickmartin145@gmail.com wrote: > [100+ lines of quote] You can't be serious. [Googlodyte-introduced, pointless intermediate empty lines removed] >> […] >> getChildren(connections, depth) >> { >> //dex.console.log("connections:", connections, "depth="+depth); >> >> var kids = []; >> >> if ( typeof connections == 'undefined') >> { >> return kids; >> } >> >> for (var cname in connections) >> { >> //dex.console.log("CNAME", cname); >> >> kids.push( >> { >> "name" : cname, >> "category" : csv.header[depth], >> "children" : dex.csv.getChildren(connections[cname], depth + 1) >> }); >> } >> >> return kids; >> } >> >> return json; >> }; >> >> […] > > It turns out, the code was working just fine. Doubtful. Have you read my other answer? If yes, have you understood it? > There was another routine which was altering the data in the background > before it got back to the console. I would like to know the ECMAScript implementation with which this code “works just fine”; that is, where the Function object referred to by “getChildren” is _not_ [[Call]]ed when execution reaches the line “getChildren(connections, depth)” followed by “{…}”. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.