File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const {
20
20
localIPv6Hosts,
21
21
opensslCli,
22
22
PIPE ,
23
+ hasCrypto,
23
24
hasIPv6,
24
25
childShouldThrowAndAbort,
25
26
createZeroFilledFile,
@@ -65,6 +66,7 @@ export {
65
66
localIPv6Hosts ,
66
67
opensslCli ,
67
68
PIPE ,
69
+ hasCrypto ,
68
70
hasIPv6 ,
69
71
childShouldThrowAndAbort ,
70
72
createZeroFilledFile ,
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ function expectFsNamespace(result) {
59
59
'ERR_UNSUPPORTED_ESM_URL_SCHEME' ) ;
60
60
if ( common . isWindows ) {
61
61
const msg =
62
- 'Only file and data URLs are supported by the default ESM loader. ' +
63
- 'On Windows, absolute paths must be valid file:// URLs. ' +
62
+ 'Only URLs with a scheme in: file, data are supported by the default ' +
63
+ 'ESM loader. On Windows, absolute paths must be valid file:// URLs. ' +
64
64
"Received protocol 'c:'" ;
65
65
expectModuleError ( import ( 'C:\\example\\foo.mjs' ) ,
66
66
'ERR_UNSUPPORTED_ESM_URL_SCHEME' ,
Original file line number Diff line number Diff line change 1
1
// Flags: --experimental-network-imports --dns-result-order=ipv4first
2
- import '../common/index.mjs' ;
2
+ import * as common from '../common/index.mjs' ;
3
3
import { path , readKey } from '../common/fixtures.mjs' ;
4
4
import { pathToFileURL } from 'url' ;
5
5
import assert from 'assert' ;
@@ -8,6 +8,9 @@ import https from 'https';
8
8
import os from 'os' ;
9
9
import util from 'util' ;
10
10
11
+ if ( ! common . hasCrypto )
12
+ common . skip ( 'missing crypto' ) ;
13
+
11
14
const createHTTPServer = http . createServer ;
12
15
13
16
// Needed to deal w/ test certs
You can’t perform that action at this time.
0 commit comments