Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must.prototype.assert's stringification of a Promise is non-informative #72

Open
jandppw opened this issue Dec 11, 2017 · 0 comments
Open

Comments

@jandppw
Copy link

jandppw commented Dec 11, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant