Implementation of [Storelike.Data] for [Caller] See [Store.Data] and [NewStoreWithData] for more.
()
| 502 | // Implementation of [Storelike.Data] for [Caller] |
| 503 | // See [Store.Data] and [NewStoreWithData] for more. |
| 504 | func (c *Caller) Data() interface{} { |
| 505 | if c.ptr == nil { |
| 506 | panic("cannot use caller after host function returns") |
| 507 | } |
| 508 | |
| 509 | return getDataInStore(c).data |
| 510 | } |
| 511 | |
| 512 | // Shim function that's expected to wrap any invocations of WebAssembly from Go |
| 513 | // itself. |
nothing calls this directly
no test coverage detected