Skip to content

Missing js.Boot.__string_rec from output with -dce std #2500

Closed
@andyli

Description

@andyli
enum E {
    E1;
}

class Test {
    static function main():Void {
        trace(E.E1);
    }
}

JS output (with -dce std, using Haxe 3ab3ad1):

(function () { "use strict";
var $estr = function() { return js.Boot.__string_rec(this,''); };
var E = { __constructs__ : ["E1"] };
E.E1 = ["E1",0];
E.E1.toString = $estr;
E.E1.__enum__ = E;
var Test = function() { };
Test.main = function() {
    console.log(E.E1);
};
Test.main();
})();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions