0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[mozjs24] Allow build elinks with g++

SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
This commit is contained in:
Witold Filipczyk
2020-10-05 20:14:55 +02:00
parent 0c337dd30a
commit 1f57e72212
318 changed files with 2677 additions and 462 deletions

View File

@@ -32,11 +32,7 @@ struct ecmascript_interpreter {
/* The code evaluated by setTimeout() */
struct string code;
#if defined(CONFIG_ECMASCRIPT_SMJS_HEARTBEAT)
struct heartbeat *heartbeat;
#elif defined(HAVE_JS_SETBRANCHCALLBACK)
time_t exec_start;
#endif
/* This is a cross-rerenderings accumulator of
* @document.onload_snippets (see its description for juicy details).