On Mon, Dec 18, 2017 at 10:11 PM, J Decker <
d3c...@gmail.com> wrote:
>
>
> On Mon, Dec 18, 2017 at 2:43 PM, Ben Noordhuis <
in...@bnoordhuis.nl> wrote:
>>
>> On Fri, Dec 15, 2017 at 7:17 AM, J Decker <
d3c...@gmail.com> wrote:
>> > most usages the callbacks will all be performed before returning back to
>> > the
>> > orignal javascript caller, but, it can be that the javascript is adding
>> > streaming data to the text processor iteritively so there may be a long
>> > time
>> > between one call to f() and the next... would the 'result' be subject to
>> > garbage collection when it's not in a Local<> or Persistent<> ?
>>
>> Yes, and keep in mind a Local won't safe you if its HandleScope is
>> destroyed in the interim - it needs to be a Persistent in that case.
>
> to clarify; you're saying it will be potentially garbage collected unless in
> a persistent?
That's a misunderstanding. Clear() only clears the Local, not the