GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: clean up wasm fixtures · nodejs/node@c826af7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • fixtures
      • shared-memory.wasm
      • shared-memory.wat
      • simple.wasm
      • simple.wat
      • test.wasm
      • test.wat
      • wasm-threads-shared-memory.wasm
      • wasm-threads-shared-memory.wat
    • parallel
      • test-util-types.js
      • test-v8-serdes.js
      • test-wasm-simple.js
      • test-worker-message-port-wasm-module.js
      • test-worker-message-port-wasm-threads.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/fixtures/shared-memory.wasm‎

Copy file name to clipboard
26 Bytes
Binary file not shown.
Collapse file

‎test/fixtures/shared-memory.wat‎

Copy file name to clipboard
+8Lines 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+
)
Collapse file

‎test/fixtures/simple.wasm‎

Copy file name to clipboard
41 Bytes
Binary file not shown.
Collapse file

‎test/fixtures/simple.wat‎

Copy file name to clipboard
+11Lines 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+
)
Collapse file

‎test/fixtures/test.wasm‎

Copy file name to clipboard
-50 Bytes
Binary file not shown.
Collapse file

‎test/fixtures/test.wat‎

Copy file name to clipboardExpand all lines: test/fixtures/test.wat
-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file

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

Copy file name to clipboard
-36 Bytes
Binary file not shown.
Collapse file

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

Copy file name to clipboardExpand all lines: test/fixtures/wasm-threads-shared-memory.wat
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

‎test/parallel/test-util-types.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util-types.js
+1-1Lines 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' ],
Collapse file

‎test/parallel/test-v8-serdes.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-v8-serdes.js
+2-2Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.