I want to do the equivalent of Object.create() in javascript from C++, but
I don't see any way to specify the prototype of a new v8::Object from the
API.
I was planning on creating the object with v8::Object::New and then calling
v8::Object::SetPrototype() on it, until I saw this:
https://deve
Would it be a waste of everyone's time if I created an issue and submitted
a change to make Error return Local? FWIW, my inclination would
make Factory::NewError return a JSObject and go from there though if people
fee that's a bridge too far, I'd just put a checked cast into api.cc. It
just se
Yeap, I completely understand. This is for the test purpose and I got few
dependencies which requires me to use this version. I see programs used to
compile with this version now fail to compile with newer versions, and
can't change/modify these programs.
Thanks,
Hitesh
On Thu, Feb 11, 2016 at 3
The issue is... with other parts of the API, when we return a MaybeLocal,
it may have thrown an exception, in which process we created an Error
object, and return an empty handle as result.
This case is special. We want to create an Error object. If that itself
fails, throwing an exception make
3.9.24, are you sure? That's a daily development snapshot from almost 4
years ago! I'd strongly advise against using it for anything, as it is
probably full of bugs, including security vulnerabilities. I wouldn't be
surprised if it didn't even compile any more with modern compilers, as
toolchains t
On Thu, Feb 11, 2016 at 5:06 AM, Zac Hansen wrote:
> I want to be able to stop the current javascript execution when a certain
> criteria is met from within a C++ function that the triggering javascript
> cannot catch.
>
> I want this information to propagate back to the c++ invoking the code
> so
Thank you Louis, now it compiles and links perfectly.
Regards,
/Daniel
ons 10 feb. 2016 kl 21:56 skrev Louis Santillan :
> You're querying gcc but your build is using clang. You can disable
> clang by doing `make x64.debug GYPFLAGS=-Dclang=0`
>
> On Wed, Feb 10, 2016 at 11:30 AM, Daniel Brahn