Skip to content

Commit 3045abd

Browse files
committed
Utils:
Fixes the check for integers when the integers have more than 32bits See #74891
1 parent 9c33f31 commit 3045abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/util.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class CUI.util
229229
`n===+n && n!==(n|0)`
230230

231231
@isInteger: (n) ->
232-
`n===+n && n===(n|0)`
232+
Number.isInteger(n)
233233

234234
@isPromise: (n) ->
235235
n instanceof CUI.Promise or n instanceof CUI.Deferred

0 commit comments

Comments
 (0)