From 8789be1c4af12052f27dd25cc83ab99eca9451cb Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 20 Jan 2014 22:23:22 -0500 Subject: [PATCH] Test suite will now output thrown data if stack not available --- test/inc-testcase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/inc-testcase.js b/test/inc-testcase.js index 2c2245e..8e0aacd 100644 --- a/test/inc-testcase.js +++ b/test/inc-testcase.js @@ -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" ); } }