File tree 1 file changed +0
-18
lines changed
1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 3
3
const common = require ( '../common' ) ;
4
4
const assert = require ( 'assert' ) ;
5
5
const { URL } = require ( 'url' ) ;
6
- const vm = require ( 'vm' ) ;
7
6
8
7
const relativePath = '../fixtures/es-modules/test-esm-ok.mjs' ;
9
8
const absolutePath = require . resolve ( '../fixtures/es-modules/test-esm-ok.mjs' ) ;
@@ -21,23 +20,6 @@ function expectMissingModuleError(result) {
21
20
expectErrorProperty ( result , 'code' , 'MODULE_NOT_FOUND' ) ;
22
21
}
23
22
24
- function expectInvalidUrlError ( result ) {
25
- expectErrorProperty ( result , 'code' , 'ERR_INVALID_URL' ) ;
26
- }
27
-
28
- function expectInvalidReferrerError ( result ) {
29
- expectErrorProperty ( result , 'code' , 'ERR_INVALID_URL' ) ;
30
- }
31
-
32
- function expectInvalidProtocolError ( result ) {
33
- expectErrorProperty ( result , 'code' , 'ERR_INVALID_PROTOCOL' ) ;
34
- }
35
-
36
- function expectInvalidContextError ( result ) {
37
- expectErrorProperty ( result ,
38
- 'message' , 'import() called outside of main context' ) ;
39
- }
40
-
41
23
function expectOkNamespace ( result ) {
42
24
Promise . resolve ( result )
43
25
. then ( common . mustCall ( ns => {
You can’t perform that action at this time.
0 commit comments