0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[js] Group variables together and change type for Spidermonkey

This commit is contained in:
Witold Filipczyk 2025-01-11 20:27:40 +01:00
parent 31be553392
commit f8e158309e

View File

@ -95,22 +95,19 @@ struct ecmascript_interpreter {
#ifdef CONFIG_ECMASCRIPT_SMJS
JSAutoRealm *ar;
JS::Heap<JSObject*> *ac;
JSObject *document_obj;
JSObject *location_obj;
JS::Heap<JS::Value> *fun;
#endif
#ifdef CONFIG_QUICKJS
JSRuntime *rt;
JSValue document_obj;
JSValue location_obj;
#else
void *document_obj;
void *location_obj;
#endif
#ifdef CONFIG_QUICKJS
JSValueConst fun;
#endif
#ifdef CONFIG_ECMASCRIPT_SMJS
JS::Heap<JS::Value> *fun;
#endif
#ifdef CONFIG_MUJS
void *document_obj;
void *location_obj;
const char *fun;
void *doc;
#endif