Re: [v8-users] Constructors not always being called

2014-11-28 Thread Flying Jester
I am not using Node.js When I say 'wrap the function', I mean that I create a new function template, and then use Set from the current context's global object with the intended script-side name of the function, and the function template's function. v8::Handle Ctortempl = v8::FunctionTemplate:

[v8-users] Re: ChromeOS link_freon broken with "isolate_holder.cc(52) Couldn't mmap v8 natives data file"

2014-11-28 Thread Yang Guo
This is https://code.google.com/p/chromium/issues/detail?id=437136 On Wednesday, November 26, 2014 4:14:16 PM UTC+1, Alex Sakhartchouk wrote: > > Hi All, > > Hope you can help. Last night, I started seeing this message on my dev > Chromebook pixel, and it's stuck at boot screen. Things were fine

Re: [v8-users] Constructors not always being called

2014-11-28 Thread Louis Santillan
So, when you say 'wrap the function', I assume you mean nodejs' ObjectWrap. In vanilla v8, it doesn't work that way. Ctor is written as if it was a simple function (that returns an Exception object in the js side). and not a constructor method. Maybe ObjectWrap does some magic but I can't tell b

[v8-users] Constructors not always being called

2014-11-28 Thread Flying Jester
I've been having some issues with certain native code constructors not being called. Usually, this manifests itself when I try to call a member function of the created object, in which case I get an error about undefined not being a function. To demonstrate the root issue, I have tried to diagn