Skip to content

Commit c826af7

Browse files
devsnekaddaleax
authored andcommitted
test: clean up wasm fixtures
PR-URL: #25360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent c1aa5f0 commit c826af7

13 files changed

+27
-22
lines changed

test/fixtures/shared-memory.wasm

26 Bytes
Binary file not shown.

test/fixtures/shared-memory.wat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
2+
;; $ wat2wasm --enable-threads shared-memory.wat -o shared-memory.wasm
3+
4+
(module
5+
;; Create shared memory with initial 1 page (64KiB) and max 1 page
6+
(memory $mem 1 1 shared)
7+
(export "memory" (memory $mem))
8+
)

test/fixtures/simple.wasm

41 Bytes
Binary file not shown.

test/fixtures/simple.wat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
2+
;; $ wat2wasm simple.wat -o simple.wasm
3+
4+
(module
5+
(func $add (param $a i32) (param $b i32) (result i32)
6+
;; return $a + $b
7+
(i32.add (get_local $a) (get_local $b))
8+
)
9+
10+
(export "add" (func $add))
11+
)

test/fixtures/test.wasm

-50 Bytes
Binary file not shown.

test/fixtures/test.wat

Lines changed: 0 additions & 10 deletions
This file was deleted.
-36 Bytes
Binary file not shown.

test/fixtures/wasm-threads-shared-memory.wat

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/parallel/test-util-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { internalBinding } = require('internal/test/binding');
99
const { JSStream } = internalBinding('js_stream');
1010

1111
const external = (new JSStream())._externalStream;
12-
const wasmBuffer = fixtures.readSync('test.wasm');
12+
const wasmBuffer = fixtures.readSync('simple.wasm');
1313

1414
for (const [ value, _method ] of [
1515
[ external, 'isExternal' ],

test/parallel/test-v8-serdes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const os = require('os');
1212
const circular = {};
1313
circular.circular = circular;
1414

15-
const wasmModule = new WebAssembly.Module(fixtures.readSync('test.wasm'));
15+
const wasmModule = new WebAssembly.Module(fixtures.readSync('simple.wasm'));
1616

1717
const objects = [
1818
{ foo: 'bar' },
@@ -238,5 +238,5 @@ const deserializerTypeError =
238238
{
239239
const deserializedWasmModule = v8.deserialize(v8.serialize(wasmModule));
240240
const instance = new WebAssembly.Instance(deserializedWasmModule);
241-
assert.strictEqual(instance.exports.addTwo(10, 20), 30);
241+
assert.strictEqual(instance.exports.add(10, 20), 30);
242242
}

0 commit comments

Comments
 (0)