| |
|
Topic: Technology |
3:43 pm EDT, Aug 1, 2007 |
I was writing an application for creating a manifest for JavaScript. I was unable to do it using DOM; instead I wrote my own application for parsing JavaScript files. It is little tough to peek into JavaScript objects, initial I could only get the members and fields using for-in. but that was not enough, what if someone stored a file locally and I have to write code to execute it, I would be able to get only the members, just executing members without passing the required input parameter if any will not work. The code below will parse the file and give me the options as to what input is required and if something is returned what it could possibly be returning except primitive types. Knowing these things in advance makes it easier to execute the code. Well it worked for me; let’s see how it works for you. I know many people are looking for something like this.
JavaScript Reflection |
|