File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1010 "Shared memory requires feature 'threads' to be enabled." : 108 ,
1111 "Transform '{0}': {1}" : 109 ,
1212 "Start function name '{0}' is invalid or conflicts with another export." : 110 ,
13+ "Element '{0}' not found." : 111 ,
1314
1415 "Conversion from type '{0}' to '{1}' requires an explicit cast." : 200 ,
1516 "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 {
14211421 if ( elementsByName . has ( name ) ) {
14221422 elementsByName . set ( alias , assert ( elementsByName . get ( name ) ) ) ;
14231423 } else {
1424- throw new Error ( "no such global element: " + name ) ;
1424+ this . error ( DiagnosticCode . Element_0_not_found , null , name ) ;
14251425 }
14261426 }
14271427 }
You can’t perform that action at this time.
0 commit comments