[nodejs] Correct use of HandleScope in an asynchronous node addon

2013-05-23 Thread Cecil Rock
I'm writing a asynchronous Node Addon, but I have been struggling to figure out if I need to use a HandleScope in the After function that calls the client JavaScript callback. I've seen examples showing with and without new scopes, but never any explanation why. Here is an example: void

Re: [nodejs] Correct use of HandleScope in an asynchronous node addon

2013-05-23 Thread Ben Noordhuis
On Thu, May 23, 2013 at 4:44 AM, Cecil Rock cecil.r...@gmail.com wrote: I'm writing a asynchronous Node Addon, but I have been struggling to figure out if I need to use a HandleScope in the After function that calls the client JavaScript callback. I've seen examples showing with and without new