From cecb87d666aa38eaf2f9fb2ca7de0306481f3756 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 19 Nov 2023 12:34:43 -0300 Subject: [PATCH] TL_DEBUG: don't lose status when processing multiple files --- tl.lua | 6 +++--- tl.tl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tl.lua b/tl.lua index f03bd778d..b6cb0e26e 100644 --- a/tl.lua +++ b/tl.lua @@ -4935,13 +4935,13 @@ end local compat_code_cache = {} local function add_compat_entries(program, used_set, gen_compat) - local tl_debug = TL_DEBUG - TL_DEBUG = nil - if gen_compat == "off" or not next(used_set) then return end + local tl_debug = TL_DEBUG + TL_DEBUG = nil + local used_list = sorted_keys(used_set) local compat_loaded = false diff --git a/tl.tl b/tl.tl index 5dabe4476..421a6b702 100644 --- a/tl.tl +++ b/tl.tl @@ -4935,13 +4935,13 @@ end local compat_code_cache: {string:Node} = {} local function add_compat_entries(program: Node, used_set: {string: boolean}, gen_compat: CompatMode) - local tl_debug = TL_DEBUG - TL_DEBUG = nil - if gen_compat == "off" or not next(used_set) then return end + local tl_debug = TL_DEBUG + TL_DEBUG = nil + local used_list: {string} = sorted_keys(used_set) local compat_loaded = false