mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Error handling.
This commit is contained in:
3
api.go
3
api.go
@@ -16,6 +16,9 @@ func newConn(module api.Module) *Conn {
|
||||
panic(noGlobalErr + "malloc_destructor")
|
||||
}
|
||||
destructor := uint32(global.Get())
|
||||
if destructor == 0 {
|
||||
panic(noGlobalErr + "malloc_destructor")
|
||||
}
|
||||
destructor, ok := module.Memory().ReadUint32Le(destructor)
|
||||
if !ok {
|
||||
panic(noGlobalErr + "malloc_destructor")
|
||||
|
||||
Reference in New Issue
Block a user