diff --git a/src/document/html/parser/general.c b/src/document/html/parser/general.c
index 1c4cd22f7..051776045 100644
--- a/src/document/html/parser/general.c
+++ b/src/document/html/parser/general.c
@@ -208,7 +208,7 @@ void
html_script(struct html_context *html_context, char *a,
char *html, char *eof, char **end)
{
-#ifdef CONFIG_ECMASCRIPT
+#if defined(CONFIG_ECMASCRIPT_SMJS) || defined(CONFIG_QUICKJS)
/* TODO: