You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught exception TypeError: Cannot read property 'funcOff' of undefined
at rt (javascript:8)
at Et (javascript:8)
at It (javascript:8)
at t (javascript:8)
at t (javascript:8)
at Object.t [as luaD_precall] (javascript:8)
at Object.t.exports.luaV_execute (javascript:8)
at ut (javascript:8)
at Object.ht [as luaD_callnoyield] (javascript:8)
at Object.b [as luaT_callTM] (javascript:8)
The text was updated successfully, but these errors were encountered:
I've got the same issue, and it also seems to affect instanceof (same issue of calling itself instead of the internal function), so there is currently no way to check JS types from Lua. I'm working on a pull request right now, and aliasing it to jstypeof seems to work, though I haven't gotten jsinstanceof working yet.
Update: So instanceof was working after all, I just forgot to use class objects instead of strings on the right-hand side. Can't create pull requests, but the following code seems to fix typeof seamlessly.
Minimal example, e.g. in the https://fengari.io REPL:
The text was updated successfully, but these errors were encountered: