
上QQ阅读APP看书,第一时间看更新
WebAssembly errors (CompileError, LinkError, RuntimeError)
The JavaScript API provides constructors to create instances of the Error objects specific to WebAssembly, but we won't spend too much time covering these objects. The object definition list at the beginning of this section describes the nature of each error, which may be raised if the specified condition is met. All three errors can be constructed with a message, filename, and line number parameter (all of which are optional), and has the same properties and methods as the standard JavaScript Error object.