summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-12-21 17:05:21 -0800
committerGitHub <noreply@github.com>2020-12-22 02:05:21 +0100
commitbc84d9c8cbaf4700e7c984a50876553ec21168b0 (patch)
tree0b463ebdec4657bc1ca52d4cf6407a60c9016165 /lib
parent297c8e403d110dd872e070563328f4e0c734cd01 (diff)
downloadNim-bc84d9c8cbaf4700e7c984a50876553ec21168b0.tar.gz
[backport => 1.0] fix #16428 vmops now works for generic procs (#16429)
* fix #16428 vmops now works for generic procs

* remove duplication
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/math.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 0e6ffe053..c05e47545 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -567,6 +567,8 @@ else: # JS
   func tanh*[T: float32|float64](x: T): T {.importc: "Math.tanh", nodecl.}
 
   func arcsin*[T: float32|float64](x: T): T {.importc: "Math.asin", nodecl.}
+    # keep this as generic or update test in `tvmops.nim` to make sure we
+    # keep testing that generic importc procs work
   func arccos*[T: float32|float64](x: T): T {.importc: "Math.acos", nodecl.}
   func arctan*[T: float32|float64](x: T): T {.importc: "Math.atan", nodecl.}
   func arctan2*[T: float32|float64](y, x: T): T {.importc: "Math.atan2", nodecl.}