Please see the original question here: 
http://stackoverflow.com/questions/39399717/is-it-possible-to-read-function-closure-via-v8-addon

I want to write a Node.js V8 addon in C++ that will give me access to 
functions closures.

Something like this:


const myAddon = require('./build/Release/addon');

const counter = (() => {
  let i = 0;
  return () => ++i;
})();

counter(); // 1
counter(); // 2

const closure = myAddon(counter);
console.log(closure.i); // prints "3"


Is it possible?

Where this information stored on the V8 engine 
<http://v8.paulfryzel.com/docs/master/index.html>?

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to