2017-07-14 17:37:24 +02:00
|
|
|
// Copyright (C) 2017 Ecma International. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
description: |
|
2019-09-25 02:22:26 +02:00
|
|
|
defines: [$DONE]
|
2017-07-14 17:37:24 +02:00
|
|
|
---*/
|
|
|
|
|
2018-07-26 02:06:52 +02:00
|
|
|
function __consolePrintHandle__(msg) {
|
2017-04-13 16:37:32 +02:00
|
|
|
print(msg);
|
2014-07-15 22:47:59 +02:00
|
|
|
}
|
|
|
|
|
2018-07-26 02:06:52 +02:00
|
|
|
function $DONE(error) {
|
|
|
|
if (error) {
|
|
|
|
if(typeof error === 'object' && error !== null && 'name' in error) {
|
|
|
|
__consolePrintHandle__('Test262:AsyncTestFailure:' + error.name + ': ' + error.message);
|
|
|
|
} else {
|
2022-09-29 01:42:40 +02:00
|
|
|
__consolePrintHandle__('Test262:AsyncTestFailure:Test262Error: ' + String(error));
|
2018-07-26 02:06:52 +02:00
|
|
|
}
|
|
|
|
} else {
|
2017-04-13 16:37:32 +02:00
|
|
|
__consolePrintHandle__('Test262:AsyncTestComplete');
|
2018-07-26 02:06:52 +02:00
|
|
|
}
|
2014-07-17 19:49:35 +02:00
|
|
|
}
|