Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()
()
| 82 | // |
| 83 | // For more information see the documentation for engine.Close() |
| 84 | func (t *Trap) Close() { |
| 85 | if t._ptr == nil { |
| 86 | return |
| 87 | } |
| 88 | runtime.SetFinalizer(t, nil) |
| 89 | C.wasm_trap_delete(t._ptr) |
| 90 | t._ptr = nil |
| 91 | } |
| 92 | |
| 93 | // Message returns the message of the `Trap` |
| 94 | func (t *Trap) Message() string { |
no outgoing calls