dyedgreen / deno-sqlite

Deno SQLite module
https://deno.land/x/sqlite
MIT License
409 stars 36 forks source link

why not use finally? #222

Closed exe-dealer closed 1 year ago

exe-dealer commented 1 year ago

I noticed that you prefer duplicate deallocation logic instead of using finally block. Is there any reason?

https://github.com/dyedgreen/deno-sqlite/blob/4e1758a1b1a3f52f93b1209ec5a4e736fc1d619c/src/wasm.ts#L42 https://github.com/dyedgreen/deno-sqlite/blob/4e1758a1b1a3f52f93b1209ec5a4e736fc1d619c/src/db.ts#L261

dyedgreen commented 1 year ago

There is not particularly strong reason 😅