Permalink
Browse files

Test suite will now output thrown data if stack not available

  • Loading branch information...
1 parent 54fec8e commit 8789be1c4af12052f27dd25cc83ab99eca9451cb @mikegerwitz committed Jan 21, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/inc-testcase.js
View
@@ -383,12 +383,12 @@ function outputTestFailures( failures )
cur = failures[ i ];
name = cur[ 0 ];
- e = cur[ 1 ];
+ e = cur[ 1 ]; // ideally Error, but may not be
// output the name followed by the stack trace
testPrint(
'#' + i + ' ' + name + '\n'
- + e.stack + "\n\n"
+ + ( e.stack || e ) + "\n\n"
);
}
}

0 comments on commit 8789be1

Please sign in to comment.