mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 01:47:03 +00:00

PR-URL: https://github.com/nodejs/node/pull/43507 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
11 lines
277 B
JavaScript
11 lines
277 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.match(result.stderr.toString(), /Cannot specify --input-type for REPL/);
|