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
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev