QuickJS
QuickJS copied to clipboard
QuickJS is a small and embeddable Javascript engine. QuickJS sources are copyright Fabrice Bellard and Charlie Gordon.
I discovered the following issue https://github.com/abner/flutter_js/issues/81 when trying to use flutter_js. It is my understanding that the linux build of flutter_js uses quickjs so the issue likely arises here.
Hello. Does this support building to the shared library? I was able to find precompiled windows binaries, but JS_Eval() crashes in win32 - it works in win64.
``extern "C" { #include } int main() { JSRuntime* runtime = JS_NewRuntime(); JSContext* context = JS_NewContext(runtime); JS_Eval(context, "10 + 10", 7, "noname", 0); JS_FreeContext(context); JS_FreeRuntime(runtime); }`` This does not work,...
## Description The JS_IteratorNext2 function will be called recursively, causing the stack frame move to the bottom ## Build environment Ubuntu 16.04 gcc version 6.5.0 20181026 ## debug information: ```bash...
When feeding `qjs` with some crafted javascript files, ASAN may report `call malloc_usable_size() for pointer which is not owned` error, during the calling `js_def_malloc_usable_size` in Linux platforms. A sample code...
When feeding `qjs` with some crafted javascript files, it may trigger assertion failure at quickjs.c:1963 `assert(list_empty(&rt->gc_obj_list))`. A sample code snippet is like: ```javascript import * as os from "os"; var...
Here is the commonly observed call stack for memory leaks: js_def_malloc ./../../foundation/ace/third_party/quickjs/quickjs.c:1370 js_malloc_rt ./../../foundation/ace/third_party/quickjs/quickjs.c:1091 js_new_string8 ./../../foundation/ace/third_party/quickjs/quickjs.c:3122 JS_NewStringLen ./../../foundation/ace/third_party/quickjs/quickjs.c:3538 JS_NewString ./../../foundation/ace/third_party/quickjs/quickjs.c:3614 JS_ToString ./../../foundation/ace/third_party/quickjs/quickjs.c:10764 js_add_slow ./../../foundation/ace/third_party/quickjs/quickjs.c:12963 JS_CallInternal ./../../foundation/ace/third_party/quickjs/quickjs.c:16617 JS_Call ./../../foundation/ace/third_party/quickjs/quickjs.c:17395 AND js_def_malloc...
# Summary This pull request introduces a CodeQL workflow to enhance the security analysis of this repository. # What is CodeQL CodeQL is a static analysis tool that helps identify...