@@ -12,7 +12,7 @@ const ModuleMap = require('internal/modules/esm/module_map');
12
12
code : 'ERR_INVALID_ARG_TYPE' ,
13
13
type : TypeError ,
14
14
message : / ^ T h e " u r l " a r g u m e n t m u s t b e o f t y p e s t r i n g /
15
- } , 15 ) ;
15
+ } , 12 ) ;
16
16
17
17
const moduleMap = new ModuleMap ( ) ;
18
18
@@ -21,7 +21,7 @@ const ModuleMap = require('internal/modules/esm/module_map');
21
21
// but I think it's useless, and was not simple to mock...
22
22
const job = undefined ;
23
23
24
- [ { } , [ ] , true , 1 , ( ) => { } ] . forEach ( ( value ) => {
24
+ [ { } , [ ] , true , 1 ] . forEach ( ( value ) => {
25
25
assert . throws ( ( ) => moduleMap . get ( value ) , errorReg ) ;
26
26
assert . throws ( ( ) => moduleMap . has ( value ) , errorReg ) ;
27
27
assert . throws ( ( ) => moduleMap . set ( value , job ) , errorReg ) ;
@@ -34,11 +34,11 @@ const ModuleMap = require('internal/modules/esm/module_map');
34
34
code : 'ERR_INVALID_ARG_TYPE' ,
35
35
type : TypeError ,
36
36
message : / ^ T h e " j o b " a r g u m e n t m u s t b e o f t y p e M o d u l e J o b /
37
- } , 5 ) ;
37
+ } , 4 ) ;
38
38
39
39
const moduleMap = new ModuleMap ( ) ;
40
40
41
- [ { } , [ ] , true , 1 , ( ) => { } ] . forEach ( ( value ) => {
41
+ [ { } , [ ] , true , 1 ] . forEach ( ( value ) => {
42
42
assert . throws ( ( ) => moduleMap . set ( '' , value ) , errorReg ) ;
43
43
} ) ;
44
44
}
0 commit comments