diff --git a/src/js/ecmascript.h b/src/js/ecmascript.h index e4b4528fa..fb54a5775 100644 --- a/src/js/ecmascript.h +++ b/src/js/ecmascript.h @@ -95,22 +95,19 @@ struct ecmascript_interpreter { #ifdef CONFIG_ECMASCRIPT_SMJS JSAutoRealm *ar; JS::Heap *ac; + JSObject *document_obj; + JSObject *location_obj; + JS::Heap *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 *fun; -#endif #ifdef CONFIG_MUJS + void *document_obj; + void *location_obj; const char *fun; void *doc; #endif