8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Must.prototype.assert's stringification of a Promise is non-informative #72
Open
@jandppw

Description

@jandppw

Must.prototyp.assert generates a message that reads '${stringify(this.actual)} must …'.

When the actual is a Promise, this produces the less informative representation '{}'.

To add insult to injury, in Node 0.10, it produces something like '{"_40": 2, "_70": null …}'. These 'numeric' properties are presumably some sort of Promise administration in Node 0.10.

What would be a good way to represent a Promise as actual?

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

      0