mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
11 lines
450 B
JavaScript
11 lines
450 B
JavaScript
// Test that error is thrown for vm source phase static 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-static.mjs')],
|
|
{ status: 1, stderr: /Source phase import object is not defined for module/ }
|
|
);
|