Skip to content

Commit 74fb75e

Browse files
committed
Revert changes to run.js
1 parent 3bfbf31 commit 74fb75e

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

src/test/run.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,9 @@ function runOneSync(name, selname, p) {
3434
});
3535
} catch(e) {
3636
got = e.toString();
37-
if (want.trim() != got.trim()) {
38-
39-
// The error messages will have consistent prefix strings, but variant context strings
40-
if ( want.trim().indexOf("Error") === -1 && got.trim().indexOf( want.trim() ) !== 0 ) {
41-
throw e;
42-
}
43-
//console.log( "want: " + want.trim() );
44-
//console.log( "got: " + got.trim() );
45-
}
46-
}
47-
if (want.trim() != got.trim()) {
48-
//console.log( "want: " + want.trim() );
49-
//console.log( "got: " + got.trim() );
50-
if ( want.trim().indexOf("Error") === -1 && got.trim().indexOf( want.trim() ) !== 0 ) {
51-
throw "mismatch";
52-
}
37+
if (want.trim() != got.trim()) throw e;
5338
}
39+
if (want.trim() != got.trim()) throw "mismatch";
5440
}
5541

5642

0 commit comments

Comments
 (0)