PR-URL: https://github.com/nodejs/node/pull/61228 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
17 lines
504 B
JavaScript
17 lines
504 B
JavaScript
// Test that experimental warning is emitted for WASM module instances
|
|
import '../common/index.mjs';
|
|
import assert from 'node:assert';
|
|
|
|
import { spawnSyncAndAssert } from '../common/child_process.js';
|
|
import * as fixtures from '../common/fixtures.mjs';
|
|
|
|
spawnSyncAndAssert(
|
|
process.execPath,
|
|
[fixtures.path('es-modules/wasm-modules.mjs')],
|
|
{
|
|
stderr(output) {
|
|
assert.match(output, /ExperimentalWarning/);
|
|
assert.match(output, /Importing WebAssembly module instances/);
|
|
},
|
|
}
|
|
);
|