mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
cadc47fe07
The reason is that absolute URLs do not go through extension and index checks. By switching to an absolute path, the resolver still applies extensions properly to the top-level main. PR-URL: https://github.com/nodejs/node/pull/16526 Fixes: https://github.com/nodejs/node/issues/16476 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
8 lines
197 B
JavaScript
8 lines
197 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const { execFileSync } = require('child_process');
|
|
|
|
const node = process.argv[0];
|
|
|
|
execFileSync(node, ['--experimental-modules', 'test/es-module/test-esm-ok']);
|