| 21116 | }; |
| 21117 | |
| 21118 | inline int index_fail(lua_State* L) { |
| 21119 | if (lua_getmetatable(L, 1) == 1) { |
| 21120 | int metatarget = lua_gettop(L); |
| 21121 | stack::get_field<false, true>(L, stack_reference(L, raw_index(2)), metatarget); |
| 21122 | return 1; |
| 21123 | } |
| 21124 | // With runtime extensibility, we can't |
| 21125 | // hard-error things. They have to |
| 21126 | // return nil, like regular table types |
| 21127 | return stack::push(L, lua_nil); |
| 21128 | } |
| 21129 | |
| 21130 | inline int index_target_fail(lua_State* L, void*) { |
| 21131 | return index_fail(L); |
no test coverage detected