| Index: test/test262/harness-adapt.js
|
| diff --git a/test/test262/harness-adapt.js b/test/test262/harness-adapt.js
|
| index b52afdba122f6c8c8b5e7d7bb68c1bded9b56184..bc10a9d5061a6247d8ba1e709c9ced551787f60d 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,22 +52,24 @@ var ES5Harness = (function() {
|
| try {
|
| var res = test.test.call($this);
|
| } catch(e) {
|
| - print(e);
|
| - res = 'fail'; error = e;
|
| + res = 'fail';
|
| + error = e;
|
| }
|
| var retVal = /^s/i.test(test.id)
|
| ? (res === true || typeof res == 'undefined' ? 'pass' : 'fail')
|
| : (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);
|
| }
|
|
|