Skip to content

Referencing export inside namespace doesn't add '____exports' prefix #617

@tomblind

Description

@tomblind
export const foobar = "foobar";
namespace NS {
    if (foobar) {
        console.log("A");
    } else {
        console.log("B");
    }
}

=>

local ____exports = {}
____exports.foobar = "foobar"
local NS = {}
do
    if foobar then -- should be '____exports.foobar'
        print("A")
    else
        print("B")
    end
end
return ____exports

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions