mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
Update jsre.go
This commit is contained in:
parent
342285b139
commit
0d2a1a4879
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ loop:
|
||||||
if !isFunc {
|
if !isFunc {
|
||||||
panic(re.vm.ToValue("js error: timer/timeout callback is not a function"))
|
panic(re.vm.ToValue("js error: timer/timeout callback is not a function"))
|
||||||
}
|
}
|
||||||
call(goja.Null(), timer.call.Arguments...)
|
call(goja.Null(), timer.call.Arguments[2:]...)
|
||||||
|
|
||||||
_, inreg := registry[timer] // when clearInterval is called from within the callback don't reset it
|
_, inreg := registry[timer] // when clearInterval is called from within the callback don't reset it
|
||||||
if timer.interval && inreg {
|
if timer.interval && inreg {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue