Skip to content

avoid an error when calling ipairs() on packers

François Perrad requested to merge catwell:pr-ipairs into master

Created by: catwell

I sent a message regarding this issue to the Lua mailing list and Hisham suggested this fix.

The original use case was I did this:

local mp = require "MessagePack"
local pretty = require "pl.pretty"
pretty.dump(mp)

and it broke because calling ipairs() on the packers table raised an error.

Merge request reports