|
|
|
CHAPTER 7 Appendix 7.1 Embedding A WebAssembly implementation will typically be embedded into a host environment. An embedder implements the connection between such a host environment and the WebAssembly semantics as defined in the main body of this specification. An embedder is expected to interact with the semantics in well-defined ways. an embedder can access it. The interface is intended to be complete, in the sense that an embedder does not need to reference other functional parts of the WebAssembly specification directly. Note: On the other hand, an embedder does not need to provide the host environment with access to all function- ality defined in this interface. For example, an implementation may not support of the 7.1.1 Types In the description of the embedder interface, syntactic classes from the and the are used as names for variables that range over the possible objects from that class. Hence, these syntactic classes can also be interpreted as types. 𝑛 is used to specify a symbolic name in addition to the respective value range. 7.1.2 Errors Failure of an interface operation is indicated by an auxiliary syntactic class: ::= In addition to the error conditions specified explicitly in this section, implementations may also return errors when specific are reached. Note: Errors are abstract and unspecific with this definition. Implementations can refine it to carry suitable classifications and diagnostic messages. 183 |