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/local/client.nim | |
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/local/client.nim')
-rw-r--r-- | src/local/client.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index 3a80b4bf..baea712f 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -797,8 +797,9 @@ proc sleep(client: Client, millis: int) {.jsfunc.} = proc atob(client: Client, data: string): DOMResult[NarrowString] {.jsfunc.} = return atob(data) -proc btoa(client: Client, data: JSString): DOMResult[string] {.jsfunc.} = - return btoa(data) +proc btoa(ctx: JSContext, client: Client, data: JSValue): DOMResult[string] + {.jsfunc.} = + return btoa(ctx, data) func line(client: Client): LineEdit {.jsfget.} = return client.pager.lineedit.get(nil) |