mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 17:57:53 +00:00

Also consistently import the `common` module where possible. PR-URL: https://github.com/nodejs/node/pull/19409 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
12 lines
385 B
JavaScript
12 lines
385 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const { execFileSync } = require('child_process');
|
|
|
|
const node = process.argv[0];
|
|
|
|
execFileSync(node, ['--experimental-modules',
|
|
fixtures.path('es-modules', 'test-esm-ok')]);
|
|
execFileSync(node, ['--experimental-modules',
|
|
fixtures.path('es-modules', 'noext')]);
|