- 1. [=Assert=]: The type of |shape1| and |shape2| is `sequence of unsigned long`.
- 1. Let |output| be the result of invoking the [=implementation-defined=] shape broadcast on |shape1| and |shape2|.
- 1. If that fails, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
- 1. Return |output|.
-
- The most common implementation is that two shapes are compatible, when each of their corresponding dimensions are equal, or one of them is 1. The output shape consists of the maximum of the corresponding dimensions.
-
-
-