about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 03:10:30 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 03:10:30 +0100
commitf43b306fae89a6fde2aef9bcde2511dafd8519c7 (patch)
tree823664773459e5c50e6606f4b0240e7010bd189d /src/js
parent1666ea6a0ef0d09ae5054fbecb8bd1805e651425 (diff)
downloadchawan-f43b306fae89a6fde2aef9bcde2511dafd8519c7.tar.gz
javascript: remove unused pointer case from getTypePtr
I probably removed the last call of getTypePtr with a pointer long ago.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/javascript.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index 1745235e..f13305c7 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -727,7 +727,7 @@ proc toJS(ctx: JSContext, s: seq): JSValue =
   return a
 
 proc getTypePtr[T](x: T): pointer =
-  when T is RootRef or T is pointer:
+  when T is RootRef:
     # I'm so sorry.
     # (This dereferences the object's first member, m_type. Probably.)
     return cast[ptr pointer](x)[]