Skip to content

Commit

Permalink
TL_DEBUG: don't lose status when processing multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Nov 19, 2023
1 parent fc5a10c commit cecb87d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cecb87d

Please sign in to comment.