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

[quickjs] element.c

This commit is contained in:
Witold Filipczyk
2021-10-29 22:06:39 +02:00
parent 85ec5fa83a
commit e15d58dfd1
6 changed files with 1680 additions and 9 deletions

View File

@@ -13,6 +13,10 @@
#include <jsapi.h>
#endif
#ifdef CONFIG_QUICKJS
#include <quickjs/quickjs.h>
#endif
#ifdef CONFIG_ECMASCRIPT
#include "main/module.h"
@@ -71,8 +75,13 @@ struct ecmascript_interpreter {
unsigned int onload_snippets_cache_id;
void *ac;
void *ac2;
#ifdef CONFIG_QUICKJS
JSValue document_obj;
JSValue location_obj;
#else
void *document_obj;
void *location_obj;
#endif
#ifdef CONFIG_ECMASCRIPT_SMJS
JS::RootedValue fun;
#endif