mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
73dc825dc5
PR-URL: https://github.com/nodejs/node/pull/44953 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
12 lines
328 B
JavaScript
12 lines
328 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const { spawnSync } = require('child_process');
|
|
|
|
const result = spawnSync(process.execPath, ['-i', '--input-type=module']);
|
|
|
|
assert.strictEqual(result.stderr.toString(), 'Cannot specify --input-type for REPL\n');
|
|
assert.notStrictEqual(result.exitCode, 0);
|