diff --git a/deps.ts b/deps.ts index 663b8c2..9534fd9 100644 --- a/deps.ts +++ b/deps.ts @@ -1 +1 @@ -export { dlopen, download } from "https://deno.land/x/plug@1.0.0-rc.3/mod.ts"; +export { dlopen, download } from "https://deno.land/x/plug@1.0.2/mod.ts"; diff --git a/src/webview.ts b/src/webview.ts index dc4195e..d20f091 100644 --- a/src/webview.ts +++ b/src/webview.ts @@ -1,3 +1,4 @@ +/// import { encodeCString, instances, lib } from "./ffi.ts"; /** Window size hints */ @@ -266,8 +267,12 @@ export class Webview { reqPtr: Deno.PointerValue, arg: Deno.PointerValue | null, ) => { - const seq = new Deno.UnsafePointerView(BigInt(seqPtr)).getCString(); - const req = new Deno.UnsafePointerView(BigInt(reqPtr)).getCString(); + const seq = seqPtr + ? new Deno.UnsafePointerView(seqPtr).getCString() + : ""; + const req = reqPtr + ? new Deno.UnsafePointerView(reqPtr).getCString() + : ""; callback(seq, req, arg); }, );