Re: [v8-users] Check failed: Handle not reset in first callback. How to Reset my Persistent

2018-10-09 Thread J Decker
On Tue, Oct 9, 2018 at 4:40 PM Mike Moening wrote: > The example was helpful. Encapsulating the Persistent in the callacks > private data object seems to be the way to roll. > > >> // kParameter will pass a void* parameter back to the callback, >> kInternalFields >> // will pass the first two

Re: [v8-users] Check failed: Handle not reset in first callback. How to Reset my Persistent

2018-10-09 Thread Mike Moening
The example was helpful. Encapsulating the Persistent in the callacks private data object seems to be the way to roll. > // kParameter will pass a void* parameter back to the callback, > kInternalFields > // will pass the first two internal fields back to the callback, kFinalizer > // will

Re: [v8-users] Check failed: Handle not reset in first callback. How to Reset my Persistent

2018-10-09 Thread Jakob Kummerow
On Tue, Oct 9, 2018 at 11:45 AM Mike Moening wrote: > With recent versions of v8 the SetWeak method has changed and the > Persistent* parameter has been dropped from the destructor callback. > The destructor callback function is **supposed** to Reset() the persistent > or its a leak. > If you

[v8-users] Check failed: Handle not reset in first callback. How to Reset my Persistent

2018-10-09 Thread Mike Moening
With recent versions of v8 the SetWeak method has changed and the Persistent* parameter has been dropped from the destructor callback. The destructor callback function is **supposed** to Reset() the persistent or its a leak. If you don't V8 crashes and tells you this: Check failed: Handle not

[v8-users] Re: SetCallAsFunctionHandler Error: TypeError: x is not a constructor

2018-10-09 Thread Mike Moening
I found a fix. See the bug comments for how to fix V8 -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop

[v8-users] Re: SetCallAsFunctionHandler Error: TypeError: x is not a constructor

2018-10-09 Thread Mike Moening
I just found this: https://bugs.chromium.org/p/v8/issues/detail?id=7670 I'm pretty sure that change broke my code. How do I back this change out of current sources to get things working again? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users ---

[v8-users] SetCallAsFunctionHandler Error: TypeError: x is not a constructor

2018-10-09 Thread Mike Moening
After upgrading to a newer version of V8 the constructorFunctionHandler I set with SetCallAsFunctionHandler does not seem to be working. When I try to execute the code below it produces this error: TypeError: RemoteRequest is not a constructor This sample code is unstructured and ugly, but it