File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
"Shared memory requires feature 'threads' to be enabled." : 108 ,
11
11
"Transform '{0}': {1}" : 109 ,
12
12
"Start function name '{0}' is invalid or conflicts with another export." : 110 ,
13
+ "Element '{0}' not found." : 111 ,
13
14
14
15
"Conversion from type '{0}' to '{1}' requires an explicit cast." : 200 ,
15
16
"Conversion from type '{0}' to '{1}' will require an explicit cast when switching between 32/64-bit." : 201 ,
Original file line number Diff line number Diff line change @@ -1421,7 +1421,7 @@ export class Program extends DiagnosticEmitter {
1421
1421
if ( elementsByName . has ( name ) ) {
1422
1422
elementsByName . set ( alias , assert ( elementsByName . get ( name ) ) ) ;
1423
1423
} else {
1424
- throw new Error ( "no such global element: " + name ) ;
1424
+ this . error ( DiagnosticCode . Element_0_not_found , null , name ) ;
1425
1425
}
1426
1426
}
1427
1427
}
You can’t perform that action at this time.
0 commit comments