Skip to content

Commit b7d9969

Browse files
committed
internal/jsre: pass only extra args to setTimeout/setInterval callbacks#32936
1 parent 07328dc commit b7d9969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/jsre/jsre.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ loop:
189189
if !isFunc {
190190
panic(re.vm.ToValue("js error: timer/timeout callback is not a function"))
191191
}
192-
call(goja.Null(), timer.call.Arguments...)
192+
call(goja.Null(), timer.call.Arguments[2:]...)
193193

194194
_, inreg := registry[timer] // when clearInterval is called from within the callback don't reset it
195195
if timer.interval && inreg {

0 commit comments

Comments
 (0)