Skip to content

Test multi-mod interactions with Context.Wrap and Override #9

@AndreLouisIssa

Description

@AndreLouisIssa

Since Override (and Decorate.Bottom and Wrap.Bottom) traverse to the bottom of the decorator stack, that might bypass the isolation of a context (needs to be tested).

e.g.

ModUtil.Path.Override("A", function() return "A1" end)
ModUtil.Path.Wrap("A", function(base) return base() .. "2" end)
ModUtil.Path.Context.Wrap("B", function()
    ModUtil.Path.Override("A", function() return "A3" end)
end)

print(A()) -- A12
B()
print(A()) -- expect A12, failure A32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions