Files
luaj/src/test/res/baselib.luac

17 lines
4.3 KiB
Plaintext
Raw Normal View History

LuaQ @baselib.lua %A@<00><><00><00><00>@A<><00>ŀ<01><00><00>@A@<00>ŀ<00><00>@A<><00>ŀ<02><00>@A<><00>ŀ<01>A<00>@A@<00>ŀA<00>@A<><00>ŀA<00>@A<><00>ŀA<00><00><00>@A@<00>ŀ<00>@A<><00>ŀ<00><00>@A<00>ŀAA<00>@A<><00>ŀA<><00>@$d@GA@<00><><00>@`<60><03>E<00><><00>@<00><02>\AE<00><00>E<00><02>\A_<><5F>E<00>@ŀ<00><><EFBFBD>\@<40>AG<>E<00>@ŀ<00><><EFBFBD>\@<40>E<00><><00><><02>\@E<00><00><>A<00>\@E<00><><00><>A<00>\@E<00><><00><> <00>\@E<00>@ <00><>$<24><00>\@E<00><> <00><>
<00>\@E<00><> <00><><01><00>\@E<00>
<00><><00>\@E<00>@
<00><05>E<><00><00>\@E<00><>
<00><05><00>\@E<00><>
<00><><00><00>\@d<00><00> <01><01><00>@<00>@<00>@ <00><00><> A <01><00>@<00><><00>@L<><4C><EFBFBD>L<EFBFBD><4C><EFBFBD> <00><><00><>͚<EFBFBD>Λ<> <00><00>@<05>E<> <01>@<00><00><><05>E <01>@<00><00><05>EA<00><> <00>A<00><>O<EFBFBD>\<01><00>@<00><00><05>EA<00> <00>AɁР\<01><00>@<00><00><><05>E<> <1C><06>O<02>@<40><01><00><05>E <1C>AP<02>@<40><01><00>@<05>AA<01>@<00><00><>EA<00>A<01><01>@<00><00><>EA<00><01><01>@<00><00>EA<00>A<01><01>@<00><00><>EA<00><><01><01>@<00>Kprint assert(true)assertpcall(assert,true)pcallpcall(assert,false)pcall(assert,nil)pcall(assert,true,"msg")msgpcall(assert,false,"msg")pcall(assert,nil,"msg")!pcall(assert,false,"msg","msg2")msg2 pcall(error)errorpcall(error,"msg")pcall(error,"msg",1)<00>?pcall(error,"msg",2)@ge@ pcall(le,i) pcall(ge,i)_G["abc"] (before)_Gabcdef_G["abc"] (after)
type(nil)type
type("a")atype(1)
type(1.5)<00>?type(function() end) type({}) type(true) type(false)pcall(type,type) pcall(type)&(function() return pcall(type) end)()la()gaga()taaa1aaa1aa2aaa2tbbb1bbb1bb2bbb2getmetatable(ta) getmetatablegetmetatable(tb)setmetatable(ta),{cc1="ccc1"} setmetatablecc1ccc1setmetatable(tb),{dd1="ddd1"}dd1ddd1getmetatable(ta)["cc1"]getmetatable(tb)["dd1"]getmetatable(1)pcall(setmetatable,1)pcall(setmetatable,nil)pcall(setmetatable,"ABC")ABC#pcall(setmetatable,function() end)E<00>@<00>\@<40><00>errormsglevelE<00>@<00>\@<40><00>errormsglevel**<00>*00E@<00>pcalltype0000011E@<00>pcalltype1111133E@<00>pcalltype33333DD<00>D%
!!!!!""#####&&&&&&''''''(((((())))))******++++++,,,,,,------.......//////00000122222334444488889999::::::;;;;;;<<<<<<<<<<==========>>>>>>>???????@@@@@@AAAAAAABBBBBBBCCCCCCCDDDDDDDDleZ$ (for index)_q (for limit)_q (for step)_qi`pla<00>$