as a follow up to the question how-to-determine-source-information-of-callback-in-v8, I have the following question.
If I look at the properties of a function, I see that it has a name, a length etc. Would it be possible to automatically add a property to all functions by hacking the constructor of the 'Function' object? If so, how should this be done? I would like to add a property called 'source_location'
function foo() {
}
console.log(foo.name); //works out of the box
console.log(foo.source_location); //can I make this work?