Files
node/test/es-module/test-esm-wasm-top-level-execution.mjs

15 lines
421 B
JavaScript

// Test that WASM modules support top-level execution
import '../common/index.mjs';
import { spawnSyncAndAssert } from '../common/child_process.js';
import * as fixtures from '../common/fixtures.mjs';
spawnSyncAndAssert(
process.execPath,
['--no-warnings', fixtures.path('es-modules/top-level-wasm.wasm')],
{
stdout: '[Object: null prototype] { prop: \'hello world\' }',
stderr: '',
trim: true,
}
);