summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 2cb547d1..2ccd2aac 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -3406,7 +3406,7 @@ scripts_init_script(const char *path, const char *script)
if (s_global_context == NULL)
create_global_object();
- if (js_check_syntax(s_global_context, script, path, 1))
+ if (js_check_syntax(s_global_context, script, path, 2))
{
debug = g_strdup_printf("\n"
"try{const script=this;"