зеркало из https://github.com/mozilla/reflex.git
Use catch instead of finally
On spidermonkey use of try/catch is optimized while try/finally is not.
This commit is contained in:
Родитель
3385fa2b23
Коммит
4e13b24ebc
|
@ -84,12 +84,16 @@ class Input /*::<a>*/ {
|
|||
const addressBook = this.addressBook
|
||||
Input.notify(value, addressBook, 0, addressBook.length)
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
catch(error) {
|
||||
this.isBlocked = false
|
||||
if (this.queue != null && this.queue.length > 0) {
|
||||
this.receive(value = this.queue.shift())
|
||||
}
|
||||
|
||||
throw error
|
||||
}
|
||||
this.isBlocked = false
|
||||
}
|
||||
}
|
||||
subscribe(address/*:Address<a>*/)/*:void*/ {
|
||||
|
|
Загрузка…
Ссылка в новой задаче