Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Update timers/timers.go
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Bespalov <[email protected]>
  • Loading branch information
mstoykov and olegbespalov authored Dec 11, 2023
1 parent d8239b9 commit 45f58ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions timers/timers.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ func (e *Timers) timerInitialization(callback goja.Callable, timeout float64, ar
}

task := func() error {
if _, exist := e.timers[id]; !exist {
return nil // 8.1
// Specification 8.1: If id does not exist in global's map of active timers, then abort these steps.
if _, exist := e.timers[id]; !exist

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (1.20.x, ubuntu-latest)

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-build

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (1.20.x, windows-latest)

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (1.21.x, ubuntu-latest)

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (1.21.x, windows-latest)

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (tip, ubuntu-latest)

syntax error: unexpected newline, expected { after if clause

Check failure on line 123 in timers/timers.go

View workflow job for this annotation

GitHub Actions / ci-checks / test-go-versions (tip, windows-latest)

syntax error: unexpected newline, expected { after if clause
return nil
}

err := e.call(callback, args)
Expand Down

0 comments on commit 45f58ab

Please sign in to comment.