Skip to content

Assertion failed: (0), function carith_int64, file lj_carith.c, line 211. #4723

Answered by igormunkin
olegrok asked this question in Q&A
Discussion options

You must be logged in to vote

There's nothing criminal about this patch

Well, the hunk for src/lua/error.lua is fine (I believe so, I didn't dive into its semantics), but the hacks with debug.* in tests are not. Looks like no one is interested why the plain getmetatable routine yields 'ffi' but no the metatable itself. OK, let's see what we have.

According to this section in Lua Reference Manual there are only two base types with individual metatables: tables and userdata. Here is the exact part clearing this fact:

Tables and full userdata have individual metatables (although multiple tables and userdata can share their metatables). Values of all other types share one single metatable per type; that is, there is on…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by igormunkin
Comment options

olegrok
Dec 2, 2020
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
wontfix This will not be worked on question Further information is requested luajit misuse Issues related to LuaJIT API misuse (both Lua and Lua C)
2 participants
Converted from issue

This discussion was converted from issue #4723 on December 30, 2020 14:09.