Skip to content

Commit 8975112

Browse files
Suppress deprecation warning in JSTimer
1 parent 2df9dad commit 8975112

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/JavaScriptKit/BasicObjects/JSTimer.swift

+4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ public final class JSTimer {
2727
case .oneshot(let closure):
2828
closure.release()
2929
case .repeating(let closure):
30+
#if JAVASCRIPTKIT_WITHOUT_WEAKREFS
3031
closure.release()
32+
#else
33+
break // no-op
34+
#endif
3135
}
3236
}
3337
}

0 commit comments

Comments
 (0)