@@ -15,7 +15,7 @@ assert.ok(validateAttributes(url, 'module', {}));
15
15
assert . ok ( validateAttributes ( url , 'wasm' , { } ) ) ;
16
16
17
17
assert . throws ( ( ) => validateAttributes ( url , 'json' , { } ) , {
18
- code : 'ERR_IMPORT_ASSERTION_TYPE_MISSING ' ,
18
+ code : 'ERR_IMPORT_ATTRIBUTE_MISSING ' ,
19
19
} ) ;
20
20
21
21
assert . throws ( ( ) => validateAttributes ( url , 'json' , { type : 'json' , unsupportedAttribute : 'value' } ) , {
@@ -27,17 +27,17 @@ assert.throws(() => validateAttributes(url, 'module', { unsupportedAttribute: 'v
27
27
} ) ;
28
28
29
29
assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'json' } ) , {
30
- code : 'ERR_IMPORT_ASSERTION_TYPE_FAILED ' ,
30
+ code : 'ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE ' ,
31
31
} ) ;
32
32
33
33
// The HTML spec specifically disallows this for now, while Wasm module import
34
34
// and whether it will require a type assertion is still an open question.
35
35
assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'javascript' } ) , {
36
- code : 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED ' ,
36
+ code : 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED ' ,
37
37
} ) ;
38
38
39
39
assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'css' } ) , {
40
- code : 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED ' ,
40
+ code : 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED ' ,
41
41
} ) ;
42
42
43
43
assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : false } ) , {
0 commit comments