From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../esm-integration/execute-start.tentative.html | 23 +++++++++++++ .../esm-integration/exported-names.tentative.html | 17 +++++++++ .../invalid-bytecode.tentative.html | 24 +++++++++++++ .../js-wasm-cycle-errors.tentative.html | 38 +++++++++++++++++++++ .../esm-integration/js-wasm-cycle.tentative.html | 11 ++++++ .../module-parse-error.tentative.html | 24 +++++++++++++ .../wasm/webapi/esm-integration/resolve-export.js | 1 + .../esm-integration/resolve-export.tentative.html | 25 ++++++++++++++ .../esm-integration/resources/execute-start.wasm | Bin 0 -> 51 bytes .../esm-integration/resources/exported-names.wasm | Bin 0 -> 73 bytes .../resources/invalid-bytecode.wasm | Bin 0 -> 14 bytes .../esm-integration/resources/invalid-module.wasm | Bin 0 -> 27 bytes .../resources/js-wasm-cycle-function-error.js | 2 ++ .../resources/js-wasm-cycle-function-error.wasm | Bin 0 -> 75 bytes .../resources/js-wasm-cycle-global.js | 2 ++ .../resources/js-wasm-cycle-global.wasm | Bin 0 -> 68 bytes .../resources/js-wasm-cycle-memory.js | 2 ++ .../resources/js-wasm-cycle-memory.wasm | Bin 0 -> 67 bytes .../resources/js-wasm-cycle-table.js | 2 ++ .../resources/js-wasm-cycle-table.wasm | Bin 0 -> 67 bytes .../resources/js-wasm-cycle-value.js | 2 ++ .../resources/js-wasm-cycle-value.wasm | Bin 0 -> 66 bytes .../esm-integration/resources/js-wasm-cycle.js | 13 +++++++ .../esm-integration/resources/js-wasm-cycle.wasm | Bin 0 -> 101 bytes .../wasm/webapi/esm-integration/resources/log.js | 1 + .../esm-integration/resources/resolve-export.wasm | Bin 0 -> 8 bytes .../resources/wasm-export-i64-global.wasm | Bin 0 -> 23 bytes .../resources/wasm-export-to-wasm.wasm | Bin 0 -> 45 bytes .../resources/wasm-import-error-from-wasm.wasm | Bin 0 -> 46 bytes .../resources/wasm-import-from-wasm.wasm | Bin 0 -> 75 bytes .../esm-integration/resources/wasm-import-func.js | 1 + .../resources/wasm-import-func.wasm | Bin 0 -> 45 bytes .../resources/wasm-import-global.js | 1 + .../resources/wasm-import-global.wasm | Bin 0 -> 40 bytes .../resources/wasm-import-memory.js | 1 + .../resources/wasm-import-memory.wasm | Bin 0 -> 41 bytes .../esm-integration/resources/wasm-import-table.js | 1 + .../resources/wasm-import-table.wasm | Bin 0 -> 40 bytes .../esm-integration/resources/wasm-js-cycle.js | 15 ++++++++ .../esm-integration/resources/wasm-js-cycle.wasm | Bin 0 -> 294 bytes .../esm-integration/resources/worker-helper.js | 1 + .../webapi/esm-integration/resources/worker.js | 1 + .../webapi/esm-integration/resources/worker.wasm | Bin 0 -> 62 bytes .../wasm-import-wasm-export.tentative.html | 14 ++++++++ .../esm-integration/wasm-import.tentative.html | 34 ++++++++++++++++++ .../esm-integration/wasm-js-cycle.tentative.html | 32 +++++++++++++++++ .../wasm-to-wasm-link-error.tentative.html | 26 ++++++++++++++ .../esm-integration/worker-import.tentative.html | 13 +++++++ .../webapi/esm-integration/worker.tentative.html | 13 +++++++ 49 files changed, 340 insertions(+) create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/execute-start.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/exported-names.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/invalid-bytecode.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle-errors.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/module-parse-error.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/execute-start.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/exported-names.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-bytecode.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-module.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/log.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/resolve-export.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-i64-global.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-to-wasm.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-error-from-wasm.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-from-wasm.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker-helper.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.js create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.wasm create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import-wasm-export.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/wasm-js-cycle.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/wasm-to-wasm-link-error.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/worker-import.tentative.html create mode 100644 testing/web-platform/tests/wasm/webapi/esm-integration/worker.tentative.html (limited to 'testing/web-platform/tests/wasm/webapi/esm-integration') diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/execute-start.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/execute-start.tentative.html new file mode 100644 index 0000000000..a35adbe8eb --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/execute-start.tentative.html @@ -0,0 +1,23 @@ + +Check execution of WebAssembly start function + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/exported-names.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/exported-names.tentative.html new file mode 100644 index 0000000000..16a9c59787 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/exported-names.tentative.html @@ -0,0 +1,17 @@ + +Exported names from a WebAssembly module + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/invalid-bytecode.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/invalid-bytecode.tentative.html new file mode 100644 index 0000000000..0e447dbee5 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/invalid-bytecode.tentative.html @@ -0,0 +1,24 @@ + +Handling of importing invalid WebAssembly modules + + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle-errors.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle-errors.tentative.html new file mode 100644 index 0000000000..f45e06ece5 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle-errors.tentative.html @@ -0,0 +1,38 @@ + +Cyclic linking between JavaScript and WebAssembly (JS higher) + + + + + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle.tentative.html new file mode 100644 index 0000000000..38b0d3203c --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/js-wasm-cycle.tentative.html @@ -0,0 +1,11 @@ + +Check bindings in JavaScript and WebAssembly cycle (JS higher) + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/module-parse-error.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/module-parse-error.tentative.html new file mode 100644 index 0000000000..0e447dbee5 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/module-parse-error.tentative.html @@ -0,0 +1,24 @@ + +Handling of importing invalid WebAssembly modules + + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.js new file mode 100644 index 0000000000..e0dcf493f8 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.js @@ -0,0 +1 @@ +export { f } from "./resources/resolve-export.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.tentative.html new file mode 100644 index 0000000000..1468822102 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resolve-export.tentative.html @@ -0,0 +1,25 @@ + +Check ResolveExport on invalid re-export from WebAssembly + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/execute-start.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/execute-start.wasm new file mode 100644 index 0000000000..ecfdda1f9a Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/execute-start.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/exported-names.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/exported-names.wasm new file mode 100644 index 0000000000..ebffad193c Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/exported-names.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-bytecode.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-bytecode.wasm new file mode 100644 index 0000000000..1ae8b721f3 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-bytecode.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-module.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-module.wasm new file mode 100644 index 0000000000..dd711f0953 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/invalid-module.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.js new file mode 100644 index 0000000000..06cb8a0ad9 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.js @@ -0,0 +1,2 @@ +export const func = 42; +import { f } from "./js-wasm-cycle-function-error.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.wasm new file mode 100644 index 0000000000..b89d94dde7 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-function-error.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.js new file mode 100644 index 0000000000..1f375b8ce1 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.js @@ -0,0 +1,2 @@ +export const glob = new WebAssembly.Global({ value: "i32" }, 42); +import { f } from "./js-wasm-cycle-global.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.wasm new file mode 100644 index 0000000000..2a9017f87b Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-global.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.js new file mode 100644 index 0000000000..92e37a86ac --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.js @@ -0,0 +1,2 @@ +export const mem = new WebAssembly.Memory({ initial: 10 }); +import { f } from "./js-wasm-cycle-memory.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.wasm new file mode 100644 index 0000000000..e699a9b3c4 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-memory.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.js new file mode 100644 index 0000000000..5d6794489f --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.js @@ -0,0 +1,2 @@ +export const tab = new WebAssembly.Table({ element: "anyfunc" }); +import { f } from "./js-wasm-cycle-table.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.wasm new file mode 100644 index 0000000000..ec4883e652 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-table.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.js new file mode 100644 index 0000000000..f7b0d62080 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.js @@ -0,0 +1,2 @@ +export const val = 42; +import { f } from "./js-wasm-cycle-value.wasm"; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.wasm new file mode 100644 index 0000000000..083409e260 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle-value.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.js new file mode 100644 index 0000000000..8ee579e2ad --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.js @@ -0,0 +1,13 @@ +function f() { return 42; } +export { f }; + +import { mem, tab, glob, func } from "./js-wasm-cycle.wasm"; +assert_true(glob instanceof WebAssembly.Global); +assert_equals(glob.valueOf(), 1); +assert_true(mem instanceof WebAssembly.Memory); +assert_true(tab instanceof WebAssembly.Table); +assert_true(func instanceof Function); + +f = () => { return 24 }; + +assert_equals(func(), 42); diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.wasm new file mode 100644 index 0000000000..77a3b86ab6 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/js-wasm-cycle.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/log.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/log.js new file mode 100644 index 0000000000..0c4f5ed519 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/log.js @@ -0,0 +1 @@ +export function logExec() { log.push("executed"); } diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/resolve-export.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/resolve-export.wasm new file mode 100644 index 0000000000..d8fc92d022 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/resolve-export.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-i64-global.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-i64-global.wasm new file mode 100644 index 0000000000..f9f0cf2799 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-i64-global.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-to-wasm.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-to-wasm.wasm new file mode 100644 index 0000000000..0ee948f96f Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-export-to-wasm.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-error-from-wasm.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-error-from-wasm.wasm new file mode 100644 index 0000000000..c27bcb068d Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-error-from-wasm.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-from-wasm.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-from-wasm.wasm new file mode 100644 index 0000000000..652ff14310 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-from-wasm.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.js new file mode 100644 index 0000000000..78982c32dc --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.js @@ -0,0 +1 @@ +export let f = 5; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.wasm new file mode 100644 index 0000000000..2f23c58520 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-func.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.js new file mode 100644 index 0000000000..4258cd2d7d --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.js @@ -0,0 +1 @@ +export let g = 5; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.wasm new file mode 100644 index 0000000000..2f8bd77940 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-global.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.js new file mode 100644 index 0000000000..4cee889838 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.js @@ -0,0 +1 @@ +export let m = 5; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.wasm new file mode 100644 index 0000000000..d9474047cd Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-memory.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.js new file mode 100644 index 0000000000..ca823646cb --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.js @@ -0,0 +1 @@ +export let t = 5; diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.wasm new file mode 100644 index 0000000000..8ccc8be7f2 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-import-table.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.js new file mode 100644 index 0000000000..161edab4f6 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.js @@ -0,0 +1,15 @@ +import * as mod from "./wasm-js-cycle.wasm"; + +let jsGlob = new WebAssembly.Global({ value: "i32", mutable: true }, 42); +let jsMem = new WebAssembly.Memory({ initial: 10 }); +let jsTab = new WebAssembly.Table({ initial: 10, element: "anyfunc" }); +let jsFunc = () => { return 42; }; + +export { jsGlob, jsMem, jsTab, jsFunc }; + +export function mutateBindings() { + jsGlob = 0; + jsMem = 0; + jsTab = 0; + jsFunc = 0; +} diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.wasm new file mode 100644 index 0000000000..b700377b27 Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/wasm-js-cycle.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker-helper.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker-helper.js new file mode 100644 index 0000000000..277bb4c1ea --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker-helper.js @@ -0,0 +1 @@ +export function pm(x) { postMessage(x); } diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.js b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.js new file mode 100644 index 0000000000..c72464f71a --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.js @@ -0,0 +1 @@ +import * as mod from "./worker.wasm" diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.wasm b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.wasm new file mode 100644 index 0000000000..e942dc54ac Binary files /dev/null and b/testing/web-platform/tests/wasm/webapi/esm-integration/resources/worker.wasm differ diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import-wasm-export.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import-wasm-export.tentative.html new file mode 100644 index 0000000000..3761a22f21 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import-wasm-export.tentative.html @@ -0,0 +1,14 @@ + +Check import and export between WebAssembly modules + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import.tentative.html new file mode 100644 index 0000000000..243cfd46e4 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-import.tentative.html @@ -0,0 +1,34 @@ + +Errors for imports of WebAssembly modules + + + + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-js-cycle.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-js-cycle.tentative.html new file mode 100644 index 0000000000..298d4d40b0 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-js-cycle.tentative.html @@ -0,0 +1,32 @@ + +Check bindings in JavaScript and WebAssembly cycle (Wasm higher) + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-to-wasm-link-error.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-to-wasm-link-error.tentative.html new file mode 100644 index 0000000000..6c43e72b09 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/wasm-to-wasm-link-error.tentative.html @@ -0,0 +1,26 @@ + +Errors for linking WebAssembly module scripts + + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/worker-import.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/worker-import.tentative.html new file mode 100644 index 0000000000..739f2d3f28 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/worker-import.tentative.html @@ -0,0 +1,13 @@ + +Testing import of WebAssembly from JavaScript worker + + + + diff --git a/testing/web-platform/tests/wasm/webapi/esm-integration/worker.tentative.html b/testing/web-platform/tests/wasm/webapi/esm-integration/worker.tentative.html new file mode 100644 index 0000000000..8002e07ce7 --- /dev/null +++ b/testing/web-platform/tests/wasm/webapi/esm-integration/worker.tentative.html @@ -0,0 +1,13 @@ + +Testing WebAssembly worker + + + + -- cgit v1.2.3