mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: remove obsolete WASI test
test-wasi-binding.js was added during the initial WASI development, but it is now considered obsolete. It also does not provide any additional test coverage. This commit removes it. PR-URL: https://github.com/nodejs/node/pull/30980 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
d6f942003b
commit
d36ae62bd7
3 files changed
-6552
No files matched your search
Vendored
BIN
Binary file not shown.
Vendored
-6533
File diff suppressed because it is too large.
Load diff
@@ -1,19 +0,0 @@
|
||||
// Flags: --experimental-wasi-unstable-preview1
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
|
||||
const assert = require('assert');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const buffer = fixtures.readSync(['wasi', 'simple-wasi.wasm']);
|
||||
const { WASI } = require('wasi');
|
||||
const wasi = new WASI({ args: [], env: process.env });
|
||||
const importObject = {
|
||||
wasi_unstable: wasi.wasiImport
|
||||
};
|
||||
|
||||
WebAssembly.instantiate(buffer, importObject)
|
||||
.then(common.mustCall((results) => {
|
||||
assert(results.instance.exports._start);
|
||||
wasi.start(results.instance);
|
||||
}));
|
||||
Reference in new issue
Block a user