newComponentEngine returns an Engine with the component-model proposal enabled, which is required to compile and instantiate components.
()
| 16 | // newComponentEngine returns an Engine with the component-model proposal |
| 17 | // enabled, which is required to compile and instantiate components. |
| 18 | func newComponentEngine() *Engine { |
| 19 | cfg := NewConfig() |
| 20 | cfg.SetWasmComponentModel(true) |
| 21 | return NewEngineWithConfig(cfg) |
| 22 | } |
| 23 | |
| 24 | // newComponent compiles `wat` into a fresh [Component] for tests. The |
| 25 | // returned component must be closed by the caller. |
no test coverage detected
searching dependent graphs…