ensure we can still redraw after a promise error that gets thrown by the exception monitor
This commit is contained in:
parent
c57b0b4047
commit
1e0ad6c3d7
2 changed files with 4 additions and 2 deletions
|
|
@ -3925,7 +3925,6 @@ function testMithril(mock) {
|
|||
var prop = m.request({method: "GET", url: "test", deserialize: function() {throw new TypeError("error occurred")}}).then(null, error)
|
||||
try {mock.XMLHttpRequest.$instances.pop().onreadystatechange()}
|
||||
catch (e) {exception = e}
|
||||
m.endComputation()
|
||||
return prop() === undefined && error() === "no error" && exception.message == "error occurred"
|
||||
})
|
||||
test(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue