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 ti ...
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 ti ...
I’ve written a Kotlin/JS program that is crashing on some JavaScript engines. It’s crashing on GraalVM like this: On Duktape it’s failing like thi ...
I have a self-defined class that calls a native method to allocate buffer in the constructor method, like below: MyClass = function () { this.buf ...
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 c ...
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(c ...
I have created a plugin for the OpenCPN marine navigation program that incorporates Duktape to provide a scripting capability. OpenCPN uses wxWidgets. ...
With the following code duktape gives me a parse error for the for of loop. Is there a workaround for this? It also does this with buffers. ...
I am successfully running Duktape JavaScripts using protected calls - actually invoked with duk_peval(). I want to catch indefinite loops etc. I have ...
I'm using Duktape in embedded MCU. For test case i have: main.js file: test.js file: Both compiled as global default code and main.js is execute ...
I am wanting to build Duktape to run under MacOSX. The instructions here say to run the supplied configuration tool at tools/configure.py There are di ...
I am using Duktape to run JS code in my Android application. I am trying to implement a log function in JS which receives multiple varargs arguments. ...
I am using Duktape on Linux (Command Line, not Browser), and would like my code to execute an external program in Linux, for example ls. I went over ...
I am trying to use JS as a scripting language in a game engine, with TypeScript on top. As runtime I use Duktape. I am a complete noob regarding JavaS ...
I have a question regarding Javascript engine error. This might be a very specific question, is there anyone saw this error before? Would you please h ...
Does it matter where require is put within a file? This is using duktape to use js function in my android app. For Example: Then call calc.calcula ...
I try to run simple script of rxjs in android application using duktape-android library and I can not find it a way to go. I put in asserts of app ...
Have this code: How insert new object in obj? No matter how hard I try to insert a nested object, it doesn’t work. Either crash or not inserted. ...
I am trying to use Duktape for Android and JavaScript bindings. I followed the documentation here https://wiki.duktape.org/HowtoModules.html and as p ...
I'm trying to build duktape using the low_memory.yaml profile, and enabling the pointer compression options. Specifically, I uncommented the following ...
Base on http://wiki.duktape.org/HowtoNativeConstructor.html, I can create a c++ class and export to JavaScript, JavaScript code can create object as w ...