danShumway / vAnalyze.js

A middleware script that seeks to allow functions in local javascript to be automatically wrapped in custom code wrappers. These can then be used to aid profiling/error checking/code understanding.
GNU General Public License v2.0
4 stars 1 forks source link

Function Wares #12

Open danShumway opened 9 years ago

danShumway commented 9 years ago

The original concept for Wares were custom snippets of code that could be auto-inserted before and after functions were called in a Wrapper.

This had a number of advantages:

With some of the more recent API changes, Wares require a bit of rethought. Specifically:

This will likely be the next API that needs to be finalized, because a number of other questions depend on it: notably the stack, but also some smaller stuff like watching properties and having functions trigger events.

I think, at the moment, the dependency list for this, and the order of attack, should be something like:

The stack is going to be it's own arc probably, since I'm interested in doing things like storing and exposing call history for functions. I likely won't get into that here, except to think of how it influences the most immediate decisions.

danShumway commented 9 years ago

Links to #17, but should be be only effected to a very very minor degree.