Hi,
I read around a bit and did some changes.
Instead of using an *ObjectTemplate *directly, for wrapping the C++ object,
I created a *FunctionTemplate *first, used *SetClassName()* and then called
*InstanceTemplate()* to create an *ObjectTemplate *from it. All handlers
were set on this
Thank you for your reply, ibon.
I am using *FunctionTemplate *to expose the keyword '*Point*'. So, it will
call the function registered with the *FunctionTemplate*. In that function,
I am using *ObjectTemplate* to wrap the C++ object and return. For the
*ObjectTemplate*, I am setting the
Sorry JaKob
On Mon, May 21, 2018, 6:51 PM Abhishek Kanike
wrote:
> Cool.. I see it. Thanks a lot Jacob.
>
> On Mon, May 21, 2018, 5:40 PM Jakob Kummerow
> wrote:
>
>> The time always has to be retrieved from the kernel. V8's implementation
>>
Cool.. I see it. Thanks a lot Jacob.
On Mon, May 21, 2018, 5:40 PM Jakob Kummerow wrote:
> The time always has to be retrieved from the kernel. V8's implementation
> is in base::OS::TimeCurrentMillis, implemented in
> src/base/platform/platform-{win32,posix}.cc.
>
> On
The time always has to be retrieved from the kernel. V8's implementation is
in base::OS::TimeCurrentMillis, implemented in
src/base/platform/platform-{win32,posix}.cc.
On Mon, May 21, 2018 at 3:22 PM Abhishek Kanike
wrote:
> Hi,
> I want to know how the date.now()
Hi,
I want to know how the date.now() function is called in javascript (or how
it returns the value). I believe that javascript uses date.now() by system
call. I want to in chrome source code how it is being set.
This is useful for one of the performance benchmark that I am working on.
Can
Have you tried setting the class name in the FunctionTemplate ?
interface_template->SetClassName( v8::String )
This names my objects as expected. I also get [object MyObject] instead of
[object Object] when calling Object's prototype toString.
You also might want to name the prototype by