** create a new ktable for pattern at the stack top, mapping ** '1' to the value at stack position 'vidx'. */
| 1032 | ** '1' to the value at stack position 'vidx'. |
| 1033 | */ |
| 1034 | static int value2fenv (lua_State *L, int vidx) { |
| 1035 | lua_createtable(L, 1, 0); |
| 1036 | lua_pushvalue(L, vidx); |
| 1037 | lua_rawseti(L, -2, 1); |
| 1038 | lua_setfenv(L, -2); |
| 1039 | return 1; |
| 1040 | } |
| 1041 | |
| 1042 | |
| 1043 | static Instruction *newpatt (lua_State *L, size_t n) { |
no test coverage detected