Skip to content
Snippets Groups Projects
Commit 4314e2ca authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

Make doneprinthandle.js accept the input and produce the output expected by...

Make doneprinthandle.js accept the input and produce the output expected by test262-harness. (#1650)

This is not a breaking change, it simply adds explicit handling to the function
parent eb6a48de
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,18 @@ description: |
---*/
function __consolePrintHandle__(msg){
function __consolePrintHandle__(msg) {
print(msg);
}
function $DONE(){
if(!arguments[0])
function $DONE(error) {
if (error) {
if(typeof error === 'object' && error !== null && 'name' in error) {
__consolePrintHandle__('Test262:AsyncTestFailure:' + error.name + ': ' + error.message);
} else {
__consolePrintHandle__('Test262:AsyncTestFailure:Test262Error: ' + error);
}
} else {
__consolePrintHandle__('Test262:AsyncTestComplete');
else
__consolePrintHandle__('Test262:AsyncTestFailure:' + arguments[0]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment