Files
node/test/es-module/test-esm-wasm-vm-source-phase-dynamic.mjs
2026-01-01 23:48:26 +00:00

11 lines
452 B
JavaScript

// Test that error is thrown for vm source phase dynamic import
import '../common/index.mjs';
import { spawnSyncAndAssert } from '../common/child_process.js';
import * as fixtures from '../common/fixtures.mjs';
spawnSyncAndAssert(
process.execPath,
['--no-warnings', '--experimental-vm-modules', fixtures.path('es-modules/test-wasm-vm-source-phase-dynamic.mjs')],
{ status: 1, stderr: /Source phase import object is not defined for module/ }
);