Does anyone know how I can look for local variables in a nested function call from C ++? Consider the following example:
// eg a global variable in the browser var global = "global_value"; function foo(){ var global = "local_value"; myCppFunction("global", global); } foo();
Now my question is how, in the implementation of myCppFunction could I access the local variable of the "global" function (value NOT, this will be given by the second parameter) from "foo"?
Handle<Value> MyCppFunction(const Arguments& args){ Local<String> varName = args[0]->ToString(); Local<String> varValue = args[1]->ToString(); // this holds "local_value" // how to access the variable "global" in the scope of 'foo' ? }
source share