lua-users home
lua-l archive

Possible bug in LuaJIT?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Test case:
test1.lua:
#!/bin/lua <--- and then try with luajit
require 'test2'
test2('ok')
print(arg[1])
test2.lua:
function test2(...) print(arg[1]) end
Running test1.lua foo gives
ok
foo
while running the same test1.lua against luajit gives
foo
foo

AltStyle によって変換されたページ (->オリジナル) /