2017-06-06 08:44:56 +08:00
|
|
|
'use strict';
|
2017-10-07 02:04:33 +08:00
|
|
|
require('../common');
|
|
|
|
const fixtures = require('../common/fixtures');
|
2017-06-06 08:44:56 +08:00
|
|
|
const assert = require('assert');
|
|
|
|
const { spawn } = require('child_process');
|
|
|
|
|
2017-10-07 02:04:33 +08:00
|
|
|
const native = fixtures.path('es-module-url/native.mjs');
|
2017-06-06 08:44:56 +08:00
|
|
|
const child = spawn(process.execPath, ['--experimental-modules', native]);
|
|
|
|
child.on('exit', (code) => {
|
|
|
|
assert.strictEqual(code, 1);
|
|
|
|
});
|