diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-12-11 02:01:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 11:01:43 +0100 |
commit | 0b73106ccf983565d34654ee8b1167827b53b01a (patch) | |
tree | 2077391acd95abccf408cc832b466f3dcc3dee34 /lib/js | |
parent | bb1c962286922487c5243ca7304fd95fdd27ea53 (diff) | |
download | Nim-0b73106ccf983565d34654ee8b1167827b53b01a.tar.gz |
add math.isNaN (#16179)
* add math.isNaN * isNaN now works with --passc:-ffast-math; tests * Update lib/pure/math.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/dom.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim index b73a85291..b74a58a1a 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -1683,6 +1683,7 @@ proc decodeURIComponent*(uri: cstring): cstring {.importc, nodecl.} proc encodeURIComponent*(uri: cstring): cstring {.importc, nodecl.} proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.} proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.} + ## see also `math.isNaN`. proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.} |