mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
internal/jsre: pass only extra args to setTimeout/setInterval callbacks#32936 (#1782)
This commit is contained in:
parent
b8feb5cffc
commit
c53b38e5fe
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,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