Friday, April 4, 2008
jsdIScript
I was in the process of trying to figure out how to track the stack frames in javascript through jsd, and naturally, I wanted to see what's in jsdlScript ;-) So I hooked a logging method in the script enumerator, and found out that at least in Mozilla, javascript is counted in the unit of functions. Each function is treated as a jsdlScript object. This makes a lot of sense. (Well, not that it didn't make any sense.) It also explains, if a page has javascript files from different servers, it cannot distinguish the scripts origin based on the url of the file. Well, more fun for me working with the jsd ;-)
Subscribe to:
Posts (Atom)