Skip to content

Commit

Permalink
Use WASM sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Sep 13, 2022
1 parent b1aec5b commit ca27abc
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.compile
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.compile()`** function compiles WebAssembly
binary code into a {{jsxref("WebAssembly.Module")}} object. This function is useful if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.CompileError.CompileError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.CompileError()`** constructor creates a new
WebAssembly `CompileError` object, which indicates an error during
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.CompileError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.compileStreaming
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.compileStreaming()`** function compiles a
{{jsxref("WebAssembly.Module")}} directly from a streamed underlying source. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Exception.Exception
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Exception()`** constructor is used to create a new [`WebAssembly.Exception`](/en-US/docs/WebAssembly/JavaScript_interface/Exception).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Exception.getArg
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`getArg()`** prototype method of the {{jsxref("WebAssembly.Exception", "Exception")}} object can be used to get the value of a specified item in the exception's data arguments.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Exception
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Exception.is
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`is()`** prototype method of the [`Exception`](/en-US/docs/WebAssembly/JavaScript_interface/Exception) object can be used to test if the `Exception` matches a given tag.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Exception.stack
---

{{JSRef}} {{non-standard_header}}
{{WebAssemblySidebar}} {{non-standard_header}}

The read-only **`stack`** property of an object instance of type [`WebAssembly.Exception`](/en-US/docs/WebAssembly/JavaScript_interface/Exception) _may_ contain a stack trace.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Global.Global
---

{{JSRef}}
{{WebAssemblySidebar}}

A **`WebAssembly.Global()`** constructor creates a new `Global` object representing a global variable instance, accessible from both JavaScript and importable/exportable across one or more {{jsxref("WebAssembly.Module")}} instances.
This allows dynamic linking of multiple modules.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Global
---

{{JSRef}}
{{WebAssemblySidebar}}

A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more {{jsxref("WebAssembly.Module")}} instances. This allows dynamic linking of multiple modules.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/webassembly/javascript_interface/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly`** JavaScript object acts as the namespace for all [WebAssembly](/en-US/docs/WebAssembly)-related functionality.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Instance.exports
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`exports`** readonly property of the
{{jsxref("WebAssembly.Instance")}} object prototype returns an object containing as its
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Instance
---

{{JSRef}}
{{WebAssemblySidebar}}

A **`WebAssembly.Instance`** object is a stateful, executable instance of a {{jsxref("WebAssembly.Module")}}. `Instance` objects contain all the [Exported WebAssembly functions](/en-US/docs/WebAssembly/Exported_functions) that allow calling into WebAssembly code from JavaScript.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Instance.Instance
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Instance()`** constructor creates a new
`Instance` object which is a stateful, executable instance of a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.instantiate
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.instantiate()`** function allows you to
compile and instantiate WebAssembly code. This function has two overloads:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.instantiateStreaming
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.instantiateStreaming()`** function compiles
and instantiates a WebAssembly module directly from a streamed underlying source. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.LinkError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides [traps](https://webassembly.github.io/simd/core/intro/overview.html#trap) from the start function).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.LinkError.LinkError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.LinkError()`** constructor creates a new
WebAssembly `LinkError` object, which indicates an error during module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Memory.buffer
---

{{JSRef}}
{{WebAssemblySidebar}}

The read-only **`buffer`** prototype property of the {{jsxref("WebAssembly.Memory")}} object returns the buffer contained in the memory. Depending on whether or not the memory was constructed with `shared: true`, the buffer is either an {{jsxref("ArrayBuffer")}} or a {{jsxref("SharedArrayBuffer")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Memory.grow
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`grow()`** prototype method of the {{jsxref("WebAssembly.Memory")}} object increases the size of the memory instance by a specified number of WebAssembly pages.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Memory
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Memory`** object is a resizable {{jsxref("ArrayBuffer")}} or {{jsxref("SharedArrayBuffer")}} that holds the raw bytes of memory accessed by a {{jsxref("WebAssembly.Instance")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Memory.Memory
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Memory()`** constructor creates a new `Memory` object whose {{jsxref("WebAssembly/Memory/buffer", "buffer")}} property is a resizable {{jsxref("ArrayBuffer")}} or {{jsxref("SharedArrayBuffer")}} that holds the raw bytes of memory accessed by a {{jsxref("WebAssembly.Instance")}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Module.customSections
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.customSections()`** function returns a copy
of the contents of all custom sections in the given module with the given string name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Module.exports
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Module.exports()`** function returns an
array containing descriptions of all the declared exports of the given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Module.imports
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.imports()`** function returns an array
containing descriptions of all the declared imports of the given `Module`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Module
---

{{JSRef}}
{{WebAssemblySidebar}}

A **`WebAssembly.Module`** object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently [shared with Workers](/en-US/docs/Web/API/Worker/postMessage), and instantiated multiple times.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Module.Module
---

{{JSRef}}
{{WebAssemblySidebar}}

A **`WebAssembly.Module()`** constructor creates a new Module
object containing stateless WebAssembly code that has already been compiled by the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.RuntimeError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a [trap](https://webassembly.github.io/spec/core/intro/overview.html#trap).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.RuntimeError.RuntimeError
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.RuntimeError()`** constructor creates a new
WebAssembly `RuntimeError` object — the type that is thrown whenever
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table.get
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`get()`** prototype method of
the {{jsxref("WebAssembly.Table()")}} object retrieves a function reference stored at a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table.grow
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`grow()`** prototype method of
the {{jsxref("WebAssembly.Table")}} object increases the size of the Table instance by a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Table()`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly Table, which stores function references. A table created by JavaScript or in WebAssembly code will be accessible and mutable from both JavaScript and WebAssembly.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table.length
---

{{JSRef}}
{{WebAssemblySidebar}}

The read-only **`length`** prototype property of the
{{jsxref("WebAssembly.Table")}} object returns the length of the table, i.e. the number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table.set
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`set()`** prototype method of
the {{jsxref("WebAssembly.Table")}} object mutates a reference stored at a given index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Table.Table
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Table()`** constructor creates a new
`Table` object of the given size and element type.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/webassembly/javascript_interface/tag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Tag
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Tag.Tag
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.Tag()`** constructor creates a new [`WebAssembly.Tag`](/en-US/docs/WebAssembly/JavaScript_interface/Tag) object.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.Tag.type
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`type()`** prototype method of the [`Tag`](/en-US/docs/WebAssembly/JavaScript_interface/Tag) object can be used to get the sequence of data types associated with the tag.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
browser-compat: javascript.builtins.WebAssembly.validate
---

{{JSRef}}
{{WebAssemblySidebar}}

The **`WebAssembly.validate()`** function validates a given [typed array](/en-US/docs/Web/JavaScript/Typed_arrays) of WebAssembly binary
code, returning whether the bytes form a valid wasm module (`true`) or not
Expand Down

0 comments on commit ca27abc

Please sign in to comment.