Files
luaj/luaj-test/src/test/resources/lua5.2.1-tests/errors.lc

133 lines
20 KiB
Plaintext
Raw Normal View History

LuaR<19>

~@A@@<06>@A<><1D>FA<00>@A]<5D>[@<00>K<00><><EFBFBD>J<>A<EFBFBD><41><08><00><>@<08><><EFBFBD><EFBFBD><EFBFBD><08><00><><EFBFBD>BBA<1D>X@C<00>A<01><00>@<01><>BBA<><1D>X<>A<00>A<01><00>@<01><>C<00>@<01><><EFBFBD>BBA<01>@<00><>BBAA<01>@<00><>BBA<><1D>A<17><00>BA<><1D>@<00>A<01><00>@<01><>BBA<01>@<00><>BBAA<01>@<00><>BBA<><01>@<00><>BBA<><01>@<00><>BBA<01>@<00><>BBAA<01>@<00><>BBA<><01>@<00><>BBA<><01>@ƀBAA<00><><00><><00>@<40><02>@BAA<00>@<40><01>@B<01>A<><00>@<40><01>@B AA <00>@<40><01>@B<01> A<> <00>@<40><01><>BJAJFB<00><>
]<5D><01><>
<1D><><02>@<01>@B<01>
A <00>@<40><01>@BA A<> <00>@<40><08><><EFBFBD><EFBFBD>@B AA <00>@<40><01>@B<01> A<> <00>@<40><01>@B AA <00>@<40><01>@B<01> A<> <00>@<40><01><>BBA<1D><02>@<01>@BAA<><00>@<40><01>@B<01>A<00>@<40><01>@BAAA <00>@<40><01>@B<01>A<><00>@<40><01>@BAA <00>@<40><01><>BJAJFB<00>A]<5D><01><><1D><><02>@<01><>BJAJFB<00><>]<5D><01><><1D><><02>@<01>@BAA<00>@<40><01>@B<01>A<><00>@<40><01>@A<00><00><>@BAA<><00>@<40><01>@A<00><>A<EFBFBD><41>@B<01>A<00>@<40><01>@BAA<><00>@<40><01><01>A<00><>!<21><00>B@<02>B<04><00> <20><><06>T<07>T@<01><01><1D><><01>FAB<00><02>A<00><><03><>]A<>FAB<00><><00>B<00><03><>]A<>FAB<00><02><00><><03><> ]A<>FAB<00><02>A<00><><03><>]A<>FAB<00><><00>A ]A<>FAB<00><00>A]A<>FAB<00><><00><>]A<>FAB<00><00>A]A<>FAB<00><><00><>]A<>FAB<00><00>A]A<>FAB<00><><00><>]A<>FAB<00><00>A]A<>F@<00><>]AK@<40><>F[<00><>Z<00>AJ<00><02>]A<>FAB<00>A<00><>]A<>FAB<00><><00>]A<>FAB<00>A<00><>]A<>FAB<00><><00>]A<>FAB<00>A<00><>]A<>e<>@<40><>F<EFBFBD>B<00>J<00>AJ<03><>]݁<><00><01>]AFAB<00>A<00><>]A<>e@<40><>F_GA<47><02>A]<5D>@<40><>F<EFBFBD>B<00>J<00>AJƁ_<01>F<>]]<02>݁ <00><01>]A<08><><EFBFBD>e<EFBFBD><00><> <00>!<01><00><06><><02><02>B!J<07>aA<>!<00><03><1D><><01><02><05>B<01><02><02>Jǂ<><01>!N<03><04><02><01>B<00><02><02>B"J<07>aA<>!<00><03><1D><><01><02><05>B<01>A<EFBFBD><EFBFBD><7F><00><01>"A<><00>A<EFBFBD><01><01>"A<><00>A<EFBFBD><01>#AB#<00>A<EFBFBD><01><01>#A<><00>A<EFBFBD><01><01>#A<><00>A<EFBFBD><01>$AB$<00>A<EFBFBD><01><01>$A<><00>A<EFBFBD><01><01>$A<><00>A<EFBFBD><01>%A<><00>A<EFBFBD><01>B%A<><00>A<EFBFBD><01><01>%AB$<00>A<EFBFBD><01><>%<08>G<EFBFBD>@<02><03><>B<>@f<>@<02><03>B<><08>S<EFBFBD>@<02><03><>B<><08>_<EFBFBD>@<02><03><>B<><06>fB@"<22>@<40><>gA<><00>B'<1D><><07>ge@<40><>eB<00><>B<00><02>BA(<01><00>B<00>@<00><><00>B<01><>B<00><02>BA(<01><00>B<00>@<00><><00>B<01><>B<00><02>BA(<01><00>B<00>@<00><><00>B@<40>̈́<00><>Ch@<03><05><>h<00><><1D><02>@<00><><00>C<01><00>J<00><><EFBFBD><04>A)<00><03>@<03><>J<00>D<EFBFBD>  A<>)݄<><01><17><01><06>T<07>i
@<07>j<00><05> <09>E<00>Cc<><63><EFBFBD><7F><07>X<><02><06>BG<>X<00><00>CDC<04>D<01><><EFBFBD><17><><06>BY<><59><EFBFBD><00>CDC<04>DDhF<>j<00><>jĀ<01><>BD<01><><EFBFBD>j<05>݄X<00> <00><>D<00><04><00>D<01>@<00><><00>D<01><><00> <01><00>D<01>Eh@<05> <09>Eŀ<01><>BX@<40>
<00><>E<00><05><00>E<01>k<00><><00><>@<05>  <0B><>B<00>J<00>E<EFBFBD> <06>
AF+<00><05><01>EW<><57>%<25><00><>BhF<>]<00>€@<40><><02><06>BF<>kG<><47>X<00><00>CBC<02>BBhFJGB<47><04><>j<00><>,-<02><08><02>@<40><><00><><06>BF<>Z[<17><01>FBl<18><><17><00>F<EFBFBD>lX<><58><00>CBC<02>BBhFJGB<47><04>B<00><02>-<02><08><02>@<40><><00><><06>BF<>Z[B<17><01>F<EFBFBD>j<00>Bl]<5D><18><><17><00>F<EFBFBD>lX<><58><00>CBC<02>B@A<>B<06>BAB-<00><>-<00><>*<01>B<><06>BA<>-<00><>-<00><>-<01>B<><06>BA.<00><>-<00>.<01>B<><06>BAB.<00><>-<00>B.<01>B<><06>BA<>.<00><>-<00><>.<01>B<>BA/B<06>BF<>Z<18><><17><00>FBoX<><58><00>CBC<02>B@A<>BT<><06>f<00><08>o<EFBFBD><01>F<>o<00><>!B<01>BA0CBAC0C <02>%<25>@<04><>0<00><>0]B<>@<04><>0<00>1]B<>@<04><>-<00>B1]B<>@<04><>-<00><>1]B<>@<04><>-<00><>1]B<>@<04><>-<00>2]B<>@<04><>-<00>B2]B<>@<04><>0<00><>2]B<>@<04><>0<00><>2]B<>A3L<><4C><04>B3]<5D><><01><>3V<><56><04><>s<00><02><04><><06>B<00>B@<01>FJGC<47><06><03><05>4]<5D><>@<00>CCC<03>CC4A<>4<00><><00><01><00><01><><04><06><><05>A<>4VC <09>C<EFBFBD><EFBFBD><03><06>5V<><07><03><06>C5V<><07><><00><01><00><01><><04><06>D,<05>A<>4VC <09>C<EFBFBD><EFBFBD><03><06><>5V<><07><03><06><>5V<><07><><00><>A<><00><><01><><04>6@ <09>E6<00><09><>_<07><><EFBFBD><EFBFBD><03><01>6V<03><07><>s<04><06><>F<>B<19><><EFBFBD><03><>J<00>DJ <09>7<00><><EFBFBD><01><17><01><>J<00>DJ <09>E7<00><><EFBFBD>@<00><>D<00><04>]DA<>7A<><00><>7<00><>a<01>@<05><06><><00>
<01>4V<03>
`D<>@<04><06><>5V<><56>F<>s<00><04>]<5D><01><>BJEJ
@ <09>8<05><01>DJ<><00><>@E8<00>D<00><00>printtesting errorsrequiredebug getmetatable_G__indexdoit checkmessage checksyntaxasserterror('hi', 0)hierror()_no32table.unpack({}, 1, n=2^30) a=math.sin() tostring(1) tostring() tonumber()repeat until 1; a return;;assert(false) assert(nil)function a (... , ...) endfunction a (, ...) endlocal t={}; t = t[#t] + 1 local a = {4
&'}' expected (to close '{' at line 1)<eof>@#a=1; bbbb=2; a=math.sin(3)+bbbb(3)global 'bbbb'3a=1; local a,bbbb=2,3; a = math.sin(1) and bbbb(3) local 'bbbb'!a={}; do local a=1 end a:bbbb(3)method 'bbbb'local a={}; a.bbbb(3) field 'bbbb'stringfind!a={13}; local bbbb=1; a[bbbb](3)'bbbb'number
a=(1)..{}a table valueaaaaaa.bbb:ddd(9) global 'aaa'"local aaa={bbb=1}; aaa.bbb:ddd(9) field 'bbb'#local aaa={bbb={}}; aaa.bbb:ddd(9) method 'ddd')local a,b,c; (function () a = b+1 end)() upvalue 'b'-local aaa={bbb={ddd=next}}; aaa.bbb:ddd(nil)local _ENV = {x={}}; a = a + 1 global 'a'b=1; local aaa='a'; x=aaa+b local 'aaa'aaa={}; x=3/aaaaaa='2'; b=nil;x=aaa*b global 'b'aaa={}; x=-aaa%aaa={}; x=(aaa or aaa)+(aaa and aaa)'aaa'aaa={}; (aaa or aaa)()print(print < 10) functionprint(print < print) two functionDj -- create light udata
local x = D.upvalueid(function () return debug end, 1)
D.setuservalue(x, {})
light userdata(io.write or print){} io.write(collectgarbage or print){}collectgarbage<00>?@<40>@a = xtableconcat; ; a = bbb + 1 global 'bbb'local _ENV=_ENV;; local t = {}; a = t.bbb + 1; local t = {}; t:bbb() method 'bbb'<04>aaa=9
repeat until 3==3
local x=math.sin(math.cos(3))
if math.sin(1) == x then return math.sin(1) end -- tail call
local a,b = 1, {
{x='a'..'b'..'c', y='b', z=x},
{1,2,3,4,5} or 3+3<=3+3,
3+1>3+1,
{d = x and aaa[x or y]}}
Jlocal x,y = {},1
if math.sin(1) == 0 then return 3 end -- return
x.a()
field 'a'_prefix = nil
insert = nil
while 1 do
local a
if nil then break end
insert(prefix, a)
endglobal 'insert'' -- tail call
return math.sin("a")
'sin'collectgarbage("nooption")invalid optionx = print .. "a" concatenategetmetatable(io.stdin).__gc() no valuePlocal Var
local function main()
NoSuchName (function() Var=0 end)
end
main()
global 'NoSuchName'+a setmetatablea:sub() bad selfstring.sub('a', {})#2 ('a'):sub{}#1 table.sort({1,2,3}, table.sort) 'table.sort'$string.gsub('s', 's', setmetatable)setmetatable'fC stack overflowcoroutine.yield()outside a coroutinef1
coroutinewrapselect@ yield acrossidsize<00>M@I@<00>Q@@repx$@=)local a
for i=1,'a' do
print(i)
end/
local a
for k,v in 3
do
print(k)
end(
for k,v in
3
do
print(k)
end@function a.x.y ()
a=a+1
end a =
a
+
{}a =
3
+
(
4
/
print)@a =
print
+
(
4
/
7)a
=
-
print
; a
(
23)
!local a = {x = 13}
a
.
x
(
23
)
%local a = {x = 13}
a
.
x
(
23 + a
)
:function g() f() end
function f(x) error('a', X) end
g()
X_softCgetinfol currentlineyy()xpcall
tracebackgmatch[^
]*match:(%d+):insert tonumber.@errortypepcalltoo many resultsresmsgxybcaloal syntax error1.000[[a]]'aa'<00>a = 1
char(255)I = load("a=9+"); a=3IlimY@a = 
a = 4+nila={(a(do  while a do if a then else function foo () a..a^a,i@a=nilloadlevels<00>_@ local function fooA ()
local , b,c
 local function fooB ()
local b
function fooC () return b+c+a+b
end end end<00>o@too many upvaluesline 5
function foo ()
local <00>r@line 2OK
F@<00>]<5D>@<40><00><>ƀ@<01><00><><01>@@<00>@@<00>CAC<01>_<00>loadpcall @errors.lua sfmsgcond msg _ENV <00>@<00><00><><01>@@<06>@<07>@@<01><01><00><02><01><02>@<00>doitassertstringfind<00>? @errors.lua prog msg m _ENV  3@@<1D>FA@G<><47><02><01><>]<5D><>[A<17><02>FA@G<><47><02><01>]<5D><>[A<17><00>AA<00><01>A<00><><EFBFBD>FA@G<><47><02><01><>]<5D><02><00>FA@GA<47><02><><00><01>]<5D><02><>B<00>A@ǁ<>@<02><02><01><01>A<00><>B<00>A@ǁ<>@<02><00><02><00><01><02>A<00> doitstringfind^<%a^char%('gsub(%p)%%%1format#^%%[string ".*"%%]:%d: .- near %s$assert<00>? @errors.lua3 prog3extra3token3line3msg3pt"3_ENV<00><00>
F@G@<40><00><>@]<5D><01>@<00><>@<01><00><00><><01><00>
coroutinecreatefresume @errors.lua
<00><00><00><00><00><00><00><00><00><00>n
c
a
b
_ENV<00><00> @@@K<00><01><><00><>d@<40><01>@A<00><>A@<40><00>tablesort<00>?@@
coroutineyield @errors.lua <00><00><00><00><00><00><00><00><00><00><00>_ENV<00><00>@F@@<00>pcallf1 @errors.lua<00><00><00><00><00>_ENV<00><00>F@<00>@<00>]<5D><>ƀ@<00><><EFBFBD>A݀<><01><00><01>@A <0C>A<1D>F<>AZ@<00>A<01><00>@<00>loadxstringmatch
^([^:]*):assertlenidsize @errors.lua<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>source_msg_ENV<00><00><00>@<00>@@<00><01><><06>@<07>@@<01><01><1D><>FAA<00><00><><EFBFBD>AX@<00><>A<00><01>]A<00>pcallloadstringmatch:(%d+):assert @errors.lua<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>slerrmsgline
_ENV  @ @@<00><06>@@<40><00>C<00>?y @errors.lua      _ENV  F@G@<40><00><00><>]<5D><>_<00>stringfind^.-:%d+: stack overflow @errors.lua       m_ENV F<00><00><00>@]<5D><>G<><47>IF<>@]@<40><00>getinfol currentliney
 @errors.lua x l1debug_ENV18@<17><00>F@@<00><>]@<17><01>e<00><>@<00><00><01><00><><EFBFBD>@<01><01><00>errora
xpcall44E<00>N<00><00><00>? @errors.lua444444fx @errors.lua222222455556668xauxa b _ENVf;;<00>@<01><00>݀<02><><00><><00><00>? @errors.lua;;;;;;;;xyzloop=CF@<00>@@<00><>@<01><01><00><00>]@FA<00><00>]<5D><01>@A@<07>@@<01>A<01><01>@<00>@<06>A<07>AA<1D>XB<00>A<01><00>@<01>@<00><00>
assertstringfindstack overflowpcallerror handlingmathsin.@ @errors.lua>>>>>>>???@@@@@@@AAAAAAAAAABBCmres
msg
_ENVloopFH A@<00><>!@<01><06>@AK<00><><00><01>A <00><00><00><>.A<00><>.A<00>?tableunpack @errors.lua GGGGGGGGGGGH (for index) (for limit) (for step) i
_ENVOO@K@J<><4A><EFBFBD>@<00>errormsgx @errors.luaOOOOO_ENVPPK@<00>@<00>@<00><>J<><00>_<00>msgy @errors.luaPPPPPPPrVVK_<00> @errors.luaVVVxos <00><00>A@<07>@@<01><00><><1D><><01><01>A<01><>FAA<00>@@<01><>A@<00><>A<03><01><00><><EFBFBD>@<00><>A<00><01>]A<00>
local a; stringrepy@loadassertfindlevels @errors.luappppppppqqqrrrrrrrrrrrrsinitrepsa b _ENV @errors.lua~
 $$$$$$$$$'''''''''+++,,,,,...../////////////00000111112222233333444445555566666777779<<<<9AAAABBCBDDDDEEEEFFFFFFFFFFGGGGHHHHJKKKKLLLLMMMMNNNNOOOOOOQQQQSSSSTTTTUUUUVVVVWWWWWWWWWWXXXXXXXXXXZZZZ[[[[__`dd`eeiiiijjjjmnnnnoooonqqqqqrsssssstttttttuuuuuuvvvvvvx<00><00>x<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>              !!!!!"""""""""  $%%%&&&&&&&''))))))----...........///8999;==C=DDDDDDFHFHHIIIIIIIIOOPPPPPPQQQQQQQQTTTTTTTTTTUUUUUUUUUUUUUVVVVVVVVVVWWWWWWWWWWWWWWWYYYZZZZZZ[[[[[[\\\\\\]]]]]]``````bbbccccccccccdddfgggghhhhiiijjjhsttttuuuuvvvvwwwwxxxxyyyyzzzz{{{{||||~~~~~~<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>Bdebug~mt ~oldmm ~t<00>~ (for index)<00><00> (for limit)<00><00> (for step)<00><00>i<00><00>s<00>~
checksizeq~ (for index)t<00> (for limit)t<00> (for step)t<00>iu<00>
lineerror<00>~p<00>~l<00>^checkstackmessage<00>^l1<00>^g<00>^_^ stackmsg^stack^(for generator)  (for state) (for control) line curri^res4^msg4^fC^loopG^resK^msgK^ (for index)<00><00> (for limit)<00><00> (for step)<00><00>i<00><00>testrep<00>~s
~a ~b ~lim~s~ (for index)% (for limit)% (for step)%j$ (for index).5 (for limit).5 (for step).5j/4c<~ (for index)?H (for limit)?H (for step)?Hj@GaN~bN~ (for index)el (for limit)el (for step)eljfkar~br~_ENV