edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] [ecmascript code]
@ 2017-09-01 21:09 Kevin Carhart
  2017-09-02  1:02 ` Karl Dahlke
  2017-09-02  1:14 ` Karl Dahlke
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Carhart @ 2017-09-01 21:09 UTC (permalink / raw)
  To: Edbrowse-dev



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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-09-03 22:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 21:09 [Edbrowse-dev] [ecmascript code] Kevin Carhart
2017-09-02  1:02 ` Karl Dahlke
2017-09-02  1:14 ` Karl Dahlke
2017-09-02  7:57   ` Kevin Carhart
2017-09-02 16:20     ` Karl Dahlke
2017-09-03  5:58       ` Kevin Carhart
2017-09-03 22:12         ` [Edbrowse-dev] very good news Kevin Carhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).