зеркало из https://github.com/electron/electron.git
Don't set interval too short.
Otherwise it could be possible that the callback executes for multiple times before it is cleared.
This commit is contained in:
Родитель
3c078b4dab
Коммит
424a00cf29
|
@ -74,7 +74,7 @@ describe 'node feature', ->
|
|||
clear = ->
|
||||
remote.getGlobal('clearInterval')(interval)
|
||||
done()
|
||||
interval = remote.getGlobal('setInterval')(clear, 0)
|
||||
interval = remote.getGlobal('setInterval')(clear, 10)
|
||||
|
||||
describe 'message loop', ->
|
||||
describe 'process.nextTick', ->
|
||||
|
|
Загрузка…
Ссылка в новой задаче