mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b93285454a
PR-URL: https://github.com/nodejs/node/pull/15989 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const assert = require('assert');
|
|
const { spawn } = require('child_process');
|
|
|
|
const native = fixtures.path('es-module-url/native.mjs');
|
|
const child = spawn(process.execPath, ['--experimental-modules', native]);
|
|
child.on('exit', (code) => {
|
|
assert.strictEqual(code, 1);
|
|
});
|