[v8-users] Creating and returning a new v8::internal::Object within a runtime function

2023-02-14 Thread Pradyumna Shome
Hi all I'm trying to add a new runtime function to return the Data Pointer of an array as a v8::NumberObject, so I can operate upon memory addresses in other JavaScript commands. I'm having trouble constructing and returning an object of type v8::internal::Object, since it seems like every oper

Re: [v8-users] Creating and returning a new v8::internal::Object within a runtime function

2023-02-16 Thread Pradyumna Shome
*isolate->factory()->NewNumber(number); > } > > On Tue, Feb 14, 2023 at 8:19 PM Pradyumna Shome > wrote: > >> Hi all >> >> I'm trying to add a new runtime function to return the Data Pointer of an >> array as a v8::NumberObject, so I can operate upon

Re: [v8-users] Creating and returning a new v8::internal::Object within a runtime function

2023-02-20 Thread Pradyumna Shome
tory ()-> NewNumber ( number ); return * number_handle ; } On Thu, Feb 16, 2023 at 4:55 PM, Pradyumna Shome < pradyumna.sh...@gmail.com > wrote: > > That got me to the stage of being able to compile v8. However, in runtime, > it crashes with the following error: >