File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1- export { dlopen , download } from "https://deno.land/x/plug@1.0.0-rc.3 /mod.ts" ;
1+ export { dlopen , download } from "https://deno.land/x/plug@1.0.2 /mod.ts" ;
Original file line number Diff line number Diff line change 1+ /// <reference lib="deno.unstable" />
12import { encodeCString , instances , lib } from "./ffi.ts" ;
23
34/** Window size hints */
@@ -266,8 +267,12 @@ export class Webview {
266267 reqPtr : Deno . PointerValue ,
267268 arg : Deno . PointerValue | null ,
268269 ) => {
269- const seq = new Deno . UnsafePointerView ( BigInt ( seqPtr ) ) . getCString ( ) ;
270- const req = new Deno . UnsafePointerView ( BigInt ( reqPtr ) ) . getCString ( ) ;
270+ const seq = seqPtr
271+ ? new Deno . UnsafePointerView ( seqPtr ) . getCString ( )
272+ : "" ;
273+ const req = reqPtr
274+ ? new Deno . UnsafePointerView ( reqPtr ) . getCString ( )
275+ : "" ;
271276 callback ( seq , req , arg ) ;
272277 } ,
273278 ) ;
You can’t perform that action at this time.
0 commit comments