Re: [v8-users] Partially executing a Javascript file in v8 c++ program

2017-08-04 Thread Kavin Mani
This gave me a good head start. However, my program crashes at function->Call statement. Can you please tell me what values function_value, function_name and function are supposed to take.I have also populated argv with random values since I am not using them in my function. If that could

Re: [v8-users] Partially executing a Javascript file in v8 c++ program

2017-08-04 Thread 'Jeremy Bettis' via v8-users
What I do to call a function is to use v8::Local function_value; context->Global()->Get(context, function_name).ToLocal(_value); v8::Local function = v8::Local::Cast(function_value); const int argc = arguments.size(); std::vector argv(argc); // populate the argv somehow

[v8-users] Partially executing a Javascript file in v8 c++ program

2017-08-04 Thread Kavin Mani
Hi, I am new to V8 engine and starting to experiment things. I am wondering if it is possible to execute different functions from a Javascript file at different times. Consider the following scenario: I have a Javascript file with a global variable *foo *and two functions *func1() *and

Re: [v8-users] v8 6.0.286.52 test-unboxed-doubles.cc is failing.

2017-08-04 Thread Jakob Kummerow
All tests are important. And all the test-unboxed-doubles tests pass with a regular build (Release or Debug) of the unmodified sources at that revision. I would suggest that you try to narrow down which difference between your build and the official build causes these tests to fail. (Is it gcc

[v8-users] v8 6.0.286.52 test-unboxed-doubles.cc is failing.

2017-08-04 Thread pompilimrc
I managed to build v8 on arch linux using gcc7, here you can find the full configuration for the package: https://aur.archlinux.org/packages/v8/ I've used this patch for building on gcc7: https://github.com/nodejs/node/commit/d9a8f80c0dea64d7c95eac48f8f57d7a25ea7edf this is my rendition of