Skip to main content
1 vote
0 answers
79 views

I have a 3rd party program that allows scripting via JavaScript (JS) using the Duktape JS engine. I am attempting to load the Ultralight DLL module through Duktape in order to call certain functions ...
jay mailburg's user avatar
1 vote
0 answers
138 views

I would like to transpile JS code which uses the Node 'buffer' to pure ES5 so it can run on Duktape (with Webpack and Babel). The code has been simplified in a test.js, which uses buffer and console: ...
Jean-Luc's user avatar
0 votes
0 answers
89 views

i need to login to Azure from Zabbix server that is located in Azure i enabled identity on the server now i need to login to azure using the identity within a javascript item i saw that in need to ...
anas's user avatar
  • 1
1 vote
0 answers
107 views

I would like to define a static method on a class. I have the same version using new working fine, I want a static method, thought. I have tried this: duk_push_c_function(ctx, call, DUK_VARARGS); ...
Rodrigo's user avatar
  • 1,119
1 vote
0 answers
68 views

I've got a duktape stack with the item on the top of the stack being effectively a JSON object, built with duk_push_string() / duk_put_prop_string(). My resulting object in javascript land is called '...
Trumpton's user avatar
-1 votes
1 answer
201 views

I want to call duk_push_c_function() with a lambda defined in C++, a bit like this: SomeObjType parameter; // store stuff in 'parameter' auto myLambda = [parameter](duk_context* ctx) { // do stuff ...
Peter's user avatar
  • 1
0 votes
1 answer
115 views

I had timeouts working nicely with Duktape v2.5.0. In my duktape.h file, I appended: #define DUK_USE_EXEC_TIMEOUT_CHECK JSduk_timeout_check // our timeout check function duk_bool_t JSduk_timeout_check(...
Antipole's user avatar
0 votes
2 answers
333 views

I’ve written a Kotlin/JS program that is crashing on some JavaScript engines. It’s crashing on GraalVM like this: RangeError: Maximum call stack size exceeded at <js> 839(myprogram.js:394:...
Jesse Wilson's user avatar
  • 40.8k
0 votes
2 answers
384 views

We are in the process of embedding JS in our application, and we will use a few dozen scripts each assigned to an event. Inside these scripts we provide a minimal callback api, function onevent(value) ...
Heiner's user avatar
  • 305
1 vote
1 answer
130 views

I have a self-defined class that calls a native method to allocate buffer in the constructor method, like below: MyClass = function () { this.buffer = native.alloc() } The buffer has to be ...
Link Hylia's user avatar
0 votes
4 answers
263 views

I can throw errors in C++ code by pushing an error object and then calling duk_throw(). duk_pcall() returns with 'outcome != DUK_EXEC_SUCCESS' and I can examine the error object to determine, for ...
Antipole's user avatar
0 votes
1 answer
271 views

I want to use duk_pcall to do it, here is what I tried: Firstly, I load the script file into a char* string. Secondly, use duk_pcompile_string(ctx, 0, programBody) to compile it. Then, I can use ...
wfrancis's user avatar
0 votes
1 answer
174 views

I have created a plugin for the OpenCPN marine navigation program that incorporates Duktape to provide a scripting capability. OpenCPN uses wxWidgets. Basically, the plugin presents the user with a ...
Antipole's user avatar
0 votes
0 answers
83 views

I am getting a null Exception when there is no internet on my mobile. it is showing error here: val results: String? = jsBinder.androidWrapper(functionName, gson.toJson(input)) input is Any type ...
Subham Naik's user avatar
0 votes
1 answer
241 views

With the following code duktape gives me a parse error for the for of loop. string script = u8R"(var foo = [ "foo", "bar" ] for (var ...
meponder's user avatar

15 30 50 per page
1
2 3 4 5
7