better.js
better.js copied to clipboard
globaldetector and who is using it
- first pass globaldetector gives you the name
- second pass, qgettersetter to get callers
- works with function ?
- as you get the name of the created global, it is possible to monitor it
the trick is in the double pass.
- second pass knows the name of the variable
code is running. Api still unknown
stages
- collect names of globals
- provide a function to dump .trackUsage() based on the result
- track usages of globals
- same as in propertyAttr tracker and functionAttr tracker
- dump tracker for fix