kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: ThreadError(BadCall(TypeError { expected: "function", found: "nil" })

zaoqi opened this issue · comments

commented
[zaoqi@zaoqi-pc lua]$ lua -i lang.lua 
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> 
[zaoqi@zaoqi-pc lua]$ ............../luster/target/debug/luster -r lang.lua
Error: ThreadError(BadCall(TypeError { expected: "function", found: "nil" }))

https://gitlab.com/the-language/the-language/blob/d13341505075cb8cc4fa9b23212fd9c9932bc556/core/pure/lua/lang.lua

Well, the error message is atrocious ofc, but this is probably becuase the tostring function isn't even defined yet? Or possibly some other builtin function in that giant script.

Not really looking for compatibility bug reports right now, unless its something that is clearly implemented but done wrongly. There is a huge surface area of stuff that doesn't work yet, but this is known!