lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sam Chang <sam.chang@me.com>于2016年4月12日周二 下午6:59写道:
local assert = assert

local function f(a)
    assert(a.c.e == 3)
    a.c.e = 4
end

local t = os.clock()

for i=1, 10000000 do
    f { x=1, y=2, c = {e = 3} }
end

print(os.clock() -t)


assert failed with constable branch...

Fixed, thanks! 

I forgot check table in luaV_fastset .

https://github.com/ejoy/lua/commit/6f7816d553ebdf7b2d1cecb1f2ab5bfa3323d0ab