From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 495CE77AF8 for ; Tue, 29 Sep 2015 02:01:38 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 1D1BD400AFA; Tue, 29 Sep 2015 02:04:57 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id t8T94txk022497; Tue, 29 Sep 2015 02:04:56 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id t8T94thl022490; Tue, 29 Sep 2015 02:04:55 -0700 Date: Tue, 29 Sep 2015 02:04:55 -0700 (PDT) From: Kevin Carhart To: Adam Thompson cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20150929070326.GS2254@toaster.adamthompson.me.uk> Message-ID: References: <5608d799.c539440a.54033.3b99SMTPIN_ADDED_BROKEN@mx.google.com> <20150929070326.GS2254@toaster.adamthompson.me.uk> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] [patch] [experimental] JS console patch X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 09:01:38 -0000 Hi group, Thanks for pushing the console code and improving it! Adam and Karl asked: > How've you done the ok function? > Is that a piece of js somewhere? > Wow! First of all, I don't undderstand that javascript at all, > but I see that it works, so on we go. Yes, I didn't write that, it's on MDN here, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys I brought it in without totally understanding it, but I know one distinction that they talk about is whether you want to echo all the methods just on the thing being passed in, or also on its prototype. While we're on the subject of what in the world is the Object.keys code doing, there's another distinction which may come up some day. "IsEnumerable" is used in the function. Objects can have properties like enumerable, configurable and writeable. It has to do with a permissions idea - I think. If an object's enumerable is false, I think ok would return nothing, or is supposed to. I think it's something to do with protecting the inaccessibility of private methods. Kevin > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists