diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-02 18:11:42 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-02 18:11:42 +0100 |
commit | 3419a65f2d4000a401e77217a1d6d00c6578ed09 (patch) | |
tree | 021d6a6dee89d09b0098f81f71d238fb02c64081 /src/html | |
parent | ea1043eeb44c3a5ca617e547797023c0cfac63f3 (diff) | |
download | chawan-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.nim | 5 |
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.} = |