@@ -15,7 +15,7 @@ assert.ok(validateAttributes(url, 'module', {}));
1515assert . ok ( validateAttributes ( url , 'wasm' , { } ) ) ;
1616
1717assert . throws ( ( ) => validateAttributes ( url , 'json' , { } ) , {
18- code : 'ERR_IMPORT_ASSERTION_TYPE_MISSING ' ,
18+ code : 'ERR_IMPORT_ATTRIBUTE_MISSING ' ,
1919} ) ;
2020
2121assert . throws ( ( ) => validateAttributes ( url , 'json' , { type : 'json' , unsupportedAttribute : 'value' } ) , {
@@ -27,17 +27,17 @@ assert.throws(() => validateAttributes(url, 'module', { unsupportedAttribute: 'v
2727} ) ;
2828
2929assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'json' } ) , {
30- code : 'ERR_IMPORT_ASSERTION_TYPE_FAILED ' ,
30+ code : 'ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE ' ,
3131} ) ;
3232
3333// The HTML spec specifically disallows this for now, while Wasm module import
3434// and whether it will require a type assertion is still an open question.
3535assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'javascript' } ) , {
36- code : 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED ' ,
36+ code : 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED ' ,
3737} ) ;
3838
3939assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : 'css' } ) , {
40- code : 'ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED ' ,
40+ code : 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED ' ,
4141} ) ;
4242
4343assert . throws ( ( ) => validateAttributes ( url , 'module' , { type : false } ) , {
0 commit comments