From 3419a65f2d4000a401e77217a1d6d00c6578ed09 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 2 Mar 2024 18:11:42 +0100 Subject: 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 :/) --- src/local/client.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/local') 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) -- cgit 1.4.1-2-gfad0