(fn, { name, length }, description)
| 19 | globalThis.assert_function_length = assert_function_length; |
| 20 | |
| 21 | function assert_exported_function(fn, { name, length }, description) { |
| 22 | if (WebAssembly.Function === undefined) { |
| 23 | assert_equals(Object.getPrototypeOf(fn), Function.prototype, |
| 24 | `${description}: prototype`); |
| 25 | } else { |
| 26 | assert_equals(Object.getPrototypeOf(fn), WebAssembly.Function.prototype, |
| 27 | `${description}: prototype`); |
| 28 | } |
| 29 | |
| 30 | assert_function_name(fn, name, description); |
| 31 | assert_function_length(fn, length, description); |
| 32 | } |
| 33 | globalThis.assert_exported_function = assert_exported_function; |
| 34 | |
| 35 | function assert_Instance(instance, expected_exports) { |
no test coverage detected
searching dependent graphs…