From 0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 3 Jan 2024 14:59:38 -0800 Subject: Use the standard shared memory text format (#6200) Update the legacy text parser and all tests to use the standard text format for shared memories, e.g. `(memory $m 1 1 shared)` rather than `(memory $m (shared 1 1))`. Also remove support for non-standard in-line "data" or "segment" declarations. This change makes the tests more compatible with the new text parser, which only supports the standard format. --- test/wasm2js/atomic_fence.wast | 2 +- test/wasm2js/atomics_32.wast | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/wasm2js') diff --git a/test/wasm2js/atomic_fence.wast b/test/wasm2js/atomic_fence.wast index 2e605b690..cb1837dc4 100644 --- a/test/wasm2js/atomic_fence.wast +++ b/test/wasm2js/atomic_fence.wast @@ -1,5 +1,5 @@ (module - (memory $0 (shared 23 256)) + (memory $0 23 256 shared) (func (export "atomic-fence") (atomic.fence) ) diff --git a/test/wasm2js/atomics_32.wast b/test/wasm2js/atomics_32.wast index eeec93376..e366b7f4e 100644 --- a/test/wasm2js/atomics_32.wast +++ b/test/wasm2js/atomics_32.wast @@ -1,5 +1,5 @@ (module - (memory (shared 256 256)) + (memory 256 256 shared) (data "hello,") (data "world!") (func $test (export "test") -- cgit v1.2.3