Index: test/test262/harness-adapt.js |
diff --git a/test/test262/harness-adapt.js b/test/test262/harness-adapt.js |
index b52afdba122f6c8c8b5e7d7bb68c1bded9b56184..aa39ada0ccb9faa19e5302f3341dc25f7054442c 100644 |
--- a/test/test262/harness-adapt.js |
+++ b/test/test262/harness-adapt.js |
@@ -43,7 +43,7 @@ var ES5Harness = (function() { |
} |
Test262Error.prototype.toString = function() { |
- return this.result; |
+ return this.result + " " + error; |
} |
function registerTest(test) { |
@@ -52,7 +52,6 @@ var ES5Harness = (function() { |
try { |
var res = test.test.call($this); |
} catch(e) { |
- print(e); |
res = 'fail'; error = e; |
Rico
2011/04/11 13:16:35
Not from this cl, but put these on seperate lines
Martin Maly
2011/04/11 13:54:46
Done.
|
} |
var retVal = /^s/i.test(test.id) |
@@ -60,14 +59,16 @@ var ES5Harness = (function() { |
: (res === true ? 'pass' : 'fail'); |
if (retVal != 'pass') { |
+ var precondition = (test.precondition !== undefined) |
+ ? test.precondition.toString() |
+ : ''; |
+ |
throw new Test262Error( |
test.id, |
test.path, |
test.description, |
test.test.toString(), |
- (test.precondition !== undefined) |
- ? test.precondition.toString() |
- : '', |
+ precondition, |
retVal, |
error); |
} |