curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler

Home Page:https://h5.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Out parameter name resolution bug

theolivenbaum opened this issue · comments

(src.v || "") should have been (src1.v || "") on the generated code below:

switch (value) {
    case 0: 
        {
            src = { };
            this._paginationManager.GroupResultsBy(function (sh) {
                return Mosaik.Schema.Node.prototype.TryGetSource.call(sh.Node, src) ? src.v : "";
            });
        }
        break;
    case 1: 
        {
            src1 = { };
            this._paginationManager.GroupResultsBy(function (sh) {
                return Mosaik.Schema.Node.prototype.TryGetSource.call(sh.Node, src1) ? (Mosaik.NodeRenderer.GetDisplayName(sh.Node) || "") + " / " + (src.v || "") : Mosaik.NodeRenderer.GetDisplayName(sh.Node);
            });
        }
        break;
}