ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
484 stars 32 forks source link

Push non primitive convertible objects is not working #17

Closed ceifa closed 3 years ago

ceifa commented 3 years ago

Sometimes when I try to push an object, I face this issue:

Lua error(2): Cannot convert object to primitive value)

This happens because the circular dependency check in pushValue:

https://github.com/ceifa/wasmoon/blob/81325b0f121a1e2cdc3e170f8ccc9a5e76f5909e/src/thread.ts#L119