Rerumu / Rerubi

Legacy Lua bytecode interpreter; discontinued in favor of https://github.com/Rerumu/FiOne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect handling of OP_CONCAT.

YagUber opened this issue · comments

commented

Cause

Concat does not attempt to convert any objects, along with this table.concat does not call the proper metamethod.

Example:

local x = {}
setmetatable(x, {__concat = function(x, y) return '__concat' end})
print(''..x)
> invalid value (table) at index 2 in table for 'concat'

Issue fixed