summaryrefslogtreecommitdiff
path: root/test/parallel/test-worker-message-port-wasm-module.js
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-01-05 18:58:16 -0600
committerGus Caplan <me@gus.host>2019-01-08 12:57:24 -0600
commit0c8dedd103f78e3f6f9cc907240b9beaabdf12c3 (patch)
treef93b936c8f68c2b3568d813954a9ff1b4a0c4083 /test/parallel/test-worker-message-port-wasm-module.js
parent9987f1abb92461af5b2da61befe7ce0c1ab19503 (diff)
downloadandroid-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.tar.gz
android-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.tar.bz2
android-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.zip
test: clean up wasm fixtures
PR-URL: https://github.com/nodejs/node/pull/25360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-worker-message-port-wasm-module.js')
-rw-r--r--test/parallel/test-worker-message-port-wasm-module.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-worker-message-port-wasm-module.js b/test/parallel/test-worker-message-port-wasm-module.js
index 43c12a8519..922d8b11a3 100644
--- a/test/parallel/test-worker-message-port-wasm-module.js
+++ b/test/parallel/test-worker-message-port-wasm-module.js
@@ -5,13 +5,13 @@ const assert = require('assert');
const fixtures = require('../common/fixtures');
const { Worker } = require('worker_threads');
-const wasmModule = new WebAssembly.Module(fixtures.readSync('test.wasm'));
+const wasmModule = new WebAssembly.Module(fixtures.readSync('simple.wasm'));
const worker = new Worker(`
const { parentPort } = require('worker_threads');
parentPort.once('message', ({ wasmModule }) => {
const instance = new WebAssembly.Instance(wasmModule);
- parentPort.postMessage(instance.exports.addTwo(10, 20));
+ parentPort.postMessage(instance.exports.add(10, 20));
});
`, { eval: true });