about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-06 20:25:39 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-06 20:25:39 +0100
commit969b894344e93c0f67f13795ee313f61f953528e (patch)
tree1bf48c7d1ba1b4002f21046b72092c0e2b41297c /src/js
parent30e648064e06f32e1a49e41fa4ce470719ca5938 (diff)
downloadchawan-969b894344e93c0f67f13795ee313f61f953528e.tar.gz
Fix some casing issues
Diffstat (limited to 'src/js')
-rw-r--r--src/js/javascript.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index ac438e1b..3575bdf7 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -281,7 +281,7 @@ type FuncParam = tuple[name: string, t: NimNode, val: Option[NimNode], generic:
 func getMinArgs(params: seq[FuncParam]): int =
   for i in 0..<params.len:
     let it = params[i]
-    if it[2].issome:
+    if it[2].isSome:
       return i
     let t = it.t
     if t.kind == nnkBracketExpr:
@@ -597,7 +597,7 @@ proc addUnionParam0(gen: var JSFuncGenerator, tt: NimNode, s: NimNode, val: NimN
       fallback)
   # 10. If Type(V) is Object, then:
   # Sequence:
-  if seqg.issome:
+  if seqg.isSome:
     let query = quote do:
       isSequence(ctx, `val`)
     let a = seqg.get[1]
@@ -605,7 +605,7 @@ proc addUnionParam0(gen: var JSFuncGenerator, tt: NimNode, s: NimNode, val: NimN
       let `s` = fromJS_or_die(seq[`a`], ctx, `val`, `ev`, `dl`),
       fallback)
   # Record:
-  if tableg.issome:
+  if tableg.isSome:
     let a = tableg.get[1]
     let b = tableg.get[2]
     let query = quote do:
@@ -1032,7 +1032,7 @@ macro jsfgetn(jsname: static string, uf: static bool, fun: typed) =
   var gen = setupGenerator(fun, GETTER, jsname = jsname, unforgeable = uf)
   if gen.actualMinArgs != 0 or gen.funcParams.len != gen.minArgs:
     error("jsfget functions must only accept one parameter.")
-  if gen.returnType.isnone:
+  if gen.returnType.isNone:
     error("jsfget functions must have a return type.")
   if gen.newName.strVal in existing_funcs:
     #TODO TODO TODO ditto