about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-02 18:11:42 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-02 18:11:42 +0100
commit3419a65f2d4000a401e77217a1d6d00c6578ed09 (patch)
tree021d6a6dee89d09b0098f81f71d238fb02c64081 /src/html
parentea1043eeb44c3a5ca617e547797023c0cfac63f3 (diff)
downloadchawan-3419a65f2d4000a401e77217a1d6d00c6578ed09.tar.gz
quickjs: reduce diff with upstream
* the uint8array thing is probably from txiki.js, but we never used it
* upstream now has JS_GetClassID, importing that instead... (so this
  commit won't build :/)
Diffstat (limited to 'src/html')
-rw-r--r--src/html/env.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html/env.nim b/src/html/env.nim
index c614e90f..29104707 100644
--- a/src/html/env.nim
+++ b/src/html/env.nim
@@ -144,8 +144,9 @@ func getParent(window: Window): Window {.jsfget: "parent".} =
 proc atob(window: Window, data: string): DOMResult[NarrowString] {.jsfunc.} =
   return atob(data)
 
-proc btoa(window: Window, data: JSString): DOMResult[string] {.jsfunc.} =
-  return btoa(data)
+proc btoa(ctx: JSContext, window: Window, data: JSValue): DOMResult[string]
+    {.jsfunc.} =
+  return btoa(ctx, data)
 
 proc getComputedStyle(window: Window, element: Element,
     pseudoElt = none(Element)): JSResult[CSSStyleDeclaration] {.jsfunc.} =