Are there any ability to get closure variables list (Ok, maybe all scope variables) in JavaScript?
Sample:
function factory(){
var _secret = "Some secret";
return function(code){
// How to get parent function variables names here?
// ...
}
}
var inside = factory();
inside();