Wrong assertion in 'getbaseline'

The assertion cannot compute 'f->abslineinfo[i]' when the initial
estimate 'i' is -1.
This commit is contained in:
Roberto Ierusalimschy
2021-03-05 12:10:34 -03:00
parent e7803f7dbc
commit f5df7f91f7
2 changed files with 12 additions and 1 deletions

View File

@@ -420,6 +420,14 @@ if not b then
end
end]], 5)
do
-- Force a negative estimate for base line. Error in instruction 2
-- (after VARARGPREP, GETGLOBAL), with first absolute line information
-- (forced by too many lines) in instruction 0.
local s = string.format("%s return __A.x", string.rep("\n", 300))
lineerror(s, 301)
end
if not _soft then
-- several tests that exaust the Lua stack