Check including the error message from Error constructor as required

This commit is contained in:
CYBAI 2018-11-13 23:51:47 +08:00
parent 23a4d646ce
commit 0d6ead96a3
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ async_test(function(t) {
window.onerror = function (msg, url, line, col, error) {
t.step(function() {
assert_equals(msg, 'Uncaught Error: e2');
assert_true(msg.includes('e2'));
assert_equals(error, e2);
});
t.done();