Questions tagged [embedded-v8]
253 questions
0
votes
1 answer
v8. save & call JavaScript function from c++
I am trying to save JavaScript function in my c++ app and call it from another thread.
But I got "Unhandled exception at 0x0101B5D5 in Console.exe: 0xC0000005: Access violation reading location 0x00000017."
Saving the JavaScript function (in…

Khachatur
- 921
- 1
- 12
- 30
0
votes
1 answer
V8 library size
We are working on the V8 version 5.3.332 & we choose to compile it as static library. We compiled the library with the following configuration.
MAKE_TARGET="android_$BUILD_LIB_VERSION.$BUILD_MODE"
make $MAKE_TARGET -j1 snapshot=off…

Srini Edara
- 101
- 6
0
votes
1 answer
v8 Engine - Creating an array causes an error
I have a problem creating an array using the v8 engine.
This is what I got so far:
void function(Isolate* isolate) {
EscapableHandleScope scope(isolate);
Local array = Array::New(isolate, n);
...
}
But my program crashes…

Andreas
- 309
- 1
- 8
0
votes
1 answer
What does the length parameter in v8::Function::New?
when creating a new function in v8, one can pass a length parameter (docs).
But I couldn't find out what it is good for as it does not seem to have any direct effect...
v8::Function::New(ctx, callback, data, length);

Databyte
- 1,420
- 1
- 15
- 24
0
votes
1 answer
Node Addon node-gyp build missing V8 dll's
I’m trying to compile the node-addon example taken from :
https://nodejs.org/dist/latest-v6.x/docs/api/addons.html
I’m trying to do it on an offline system.
I’ve pointed node-gyp configure to a local source of node using –nodedir.
My problem is I’m…
user4292309
0
votes
1 answer
building v8 engine with Cmake
Sorry about english mistakes) Please help. I try build v8 engine from "Hellow world" example. It will be embedded on my base project, so i am need build it with Cmake, (system is macOS Sierra). I compiled v8 engine (build libraries by default stored…
0
votes
1 answer
WebAssembly via d8.exe
I posted this question here because I asked this question as part of another post, but found the solution before anyone answered it. Just want to share my findings.
I decided to try d8.exe only because I want to play around with WebAssembly don't…

John London
- 1,250
- 2
- 14
- 32
0
votes
1 answer
V8 build error in windows
I use the h file and dll file of the V8, was test from visual sudio 2015 c ++ console.
However, an error has occurred.
v8console.obj : error LNK2001:
"class v8::Platform * __cdecl v8::platform::CreateDefaultPlatform(int)"
…

Kito
- 45
- 10
0
votes
1 answer
Is it required to grab v8::Locker before making v8::Function::Call?
I'm using V8 to execute some custom javascript code, exposing OnUpdate function to JS world. Overall code works fine but currently I'm concerned about performance of below code - is it required to grab v8::Locker for executing any user defined…

Abhi
- 33
- 1
- 4
0
votes
1 answer
how to convert node-addon Persistent to Local?
I'm trying to update a node.js addon using the old v8 API.
Here is my wrapper.cpp code:
std::map > WrapMdUser::callback_map;
void WrapMdUser::FunCallback(CbRtnField *data) {
std::map >::iterator…

Sulliwane
- 410
- 6
- 16
0
votes
1 answer
V8 NewInstance failing when ObjectTemplate has a Date member
Is V8 Broken or am I?
I want to add a JS Date to a Object available in the global object. This works with a older version (4.9.385.28) but fails with (5.0.71.33)... see output
g++ -I/usr/local core.c -o testCore -ldl -pthread -std=c++0x -lv8…

Matt
- 1
- 1
0
votes
1 answer
How can I make an object immutable in the Google V8 Javascript engine?
Is it possible to make an object immutable in the V8 Javascript Engine? V8 is embedded in a C++ application.
In my case I've created and populated an Array (code is simplified)
auto arr = v8::Array::New(isolate, 10);
for (auto i = 0; i < 10; ++i)
{
…

Boinst
- 3,365
- 2
- 38
- 60
0
votes
1 answer
V8 Engine Embedded
I was following a tutorial online about NodeJS and they stated that NodeJS is a C++ program which embeds the V8 JS engine in it to provide extra features for JS. So whenever the V8 engine sees a particular keyword that is not in the ECAMScript…

LP45
- 303
- 3
- 14
0
votes
2 answers
V8 compiler errors
I recently managed to generate the visual studio project file for V8, but it doesn't compile
When I compile the All solution it spends maybe ~10 minutes compiling and then presents me with a bunch of error (at least in Release mode, 35 to be…

user112513312
- 459
- 1
- 7
- 15
0
votes
1 answer
Chrome V8 engine options
I know that Chrome V8 Engine has some option that can be set like "command-line" flags using v8::V8::SetFlagsFromString(). But where can I find description of the each flag? I did not succeed with googling for this info so far. Does anyone know the…

ivan.ukr
- 2,853
- 1
- 23
- 41