I had like to wrap any JavaScript invocation at runtime, e.g. I had like to write to a log that an invocation of Func has been occurred.
This wrapping must work for any function even those function that has been added using eval or prototyping.
I had like to wrap any JavaScript invocation at runtime, e.g. I had like to write to a log that an invocation of Func has been occurred.
This wrapping must work for any function even those function that has been added using eval or prototyping.
What your looking for is node-proxy
You can't do this using native JS. This will only work for
node.js
. It can probably be adjusted to work for any js running on V8.