Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

新增函数upvalue无法关联问题 #8

@logev

Description

@logev

例如新增
function mod.foo4()
print(a)
end
a无法和旧的a做关联。

经过排查觉得 function match_objects(objects, old_module, map, globals)内的 map[obj] = old_one有误。
我现在是改为 map[obj] = old_one or map[obj] or false,经过测试能解决这个问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions