function luaU.dump(V,M,J,C,G,W)local j={}j.L=M j.write=C j.data=G j.strip=W j.status=0 V:DumpHeader(j)V:DumpFunction(J,nil,j)j.write(nil,j.data)return j.status end return luaU

function luaU:dump(L, f, w, data, strip)
  local D = {}  -- DumpState
  D.L = L
  D.write = w
  D.data = data
  D.strip = strip
  D.status = 0
  self:DumpHeader(D)
  self:DumpFunction(f, nil, D)
  -- added: for a chunk writer writing to a file, this final call with
  -- nil data is to indicate to the writer to close the file
  D.write(nil, D.data)
  return D.status
end

return luaU
