Improved pretty-printing of matchers

This commit is contained in:
Tony Garnock-Jones 2014-05-25 13:30:45 -04:00
parent 83e82658c5
commit d36a65d843
1 changed files with 4 additions and 1 deletions

View File

@ -994,7 +994,10 @@ function Routing(exports) {
return;
}
if (m instanceof $Success) {
acc.push("{" + JSON.stringify(m.value) + "}");
var vs = JSON.stringify(typeof m.value === 'object'
? setToArray(m.value)
: m.value);
acc.push("{" + vs + "}");
return;
}