Re: [v8-users] Callback when variable is no longer valid

2019-05-20 Thread Ben Noordhuis
On Mon, May 20, 2019 at 6:59 AM Gautham B A wrote: > > Hi all, > > I'm trying to track when a variable becomes invalid. > Consider the following code where the variable goes out of scope - > > function SomeFunction() { > for(let i = 0; i < 10; ++i) { > let instance = new MyClass(); // MyClass is

[v8-users] Callback when variable is no longer valid

2019-05-19 Thread Gautham B A
Hi all, I'm trying to track when a variable becomes invalid. Consider the following code where the variable goes out of scope - function SomeFunction() { for(let i = 0; i < 10; ++i) { let instance = new MyClass(); // MyClass is implemented in C++ } // instance goes out of scope and isn't