From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.62; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.62]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 032C277DE5 for ; Fri, 1 Sep 2017 14:08:20 -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 E447D447 for ; Fri, 1 Sep 2017 14:09:03 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v81L91YJ003906 for ; Fri, 1 Sep 2017 14:09:01 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v81L90dp003872 for ; Fri, 1 Sep 2017 14:09:01 -0700 Date: Fri, 1 Sep 2017 14:09:00 -0700 (PDT) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com Message-ID: User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: [Edbrowse-dev] [ecmascript code] X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 21:08:21 -0000 Karl, Dominique, everyone who ported to duktape, do you know of a way to echo JS function bodies that are represented as [ecmascript code]? For instance, from jdb, xxx = function() { alert('hi') } function () { [ecmascript code] } xxx function () { [ecmascript code] } Using moz, when I typed xxx it would echo the program. One use for this is when diagnosing event handler code that might exist inline in a JS file, maybe in something like $(elements).on("click",handler(){ } ) (It doesn't have to be jquery - you could substitute getElementsByTagName, etc etc.) So the handlers are doled out to all of the elements in the result set maybe. And it's invaluable to be able to come along later and echo the contents of the onclick$$array and so on. I'm assuming that when it tells you something is [ecmascript code], it's like when you get [native code]. It's compiled, it's bytecode, it's on a different level. It isn't available to the interpreted environment. If you dunno, I'll try asking the duktape developers. Karl, have you talked to them a bit? thanks Kevin