@@ -781,11 +781,6 @@ export class Program extends DiagnosticEmitter {
781781
782782 // Utility
783783
784- /** Tests whether this is a WASI program. */
785- get isWasi ( ) : bool {
786- return this . elementsByName . has ( CommonNames . ASC_WASI ) ;
787- }
788-
789784 /** Obtains the source matching the specified internal path. */
790785 getSource ( internalPath : string ) : string | null {
791786 var sources = this . sources ;
@@ -1401,27 +1396,14 @@ export class Program extends DiagnosticEmitter {
14011396 {
14021397 let globalAliases = options . globalAliases ;
14031398 if ( ! globalAliases ) globalAliases = new Map ( ) ;
1404- let isWasi = this . isWasi ;
14051399 if ( ! globalAliases . has ( CommonNames . abort ) ) {
1406- globalAliases . set ( CommonNames . abort ,
1407- isWasi
1408- ? BuiltinNames . wasiAbort
1409- : BuiltinNames . abort
1410- ) ;
1400+ globalAliases . set ( CommonNames . abort , BuiltinNames . abort ) ;
14111401 }
14121402 if ( ! globalAliases . has ( CommonNames . trace ) ) {
1413- globalAliases . set ( CommonNames . trace ,
1414- isWasi
1415- ? BuiltinNames . wasiTrace
1416- : BuiltinNames . trace
1417- ) ;
1403+ globalAliases . set ( CommonNames . trace , BuiltinNames . trace ) ;
14181404 }
14191405 if ( ! globalAliases . has ( CommonNames . seed ) ) {
1420- globalAliases . set ( CommonNames . seed ,
1421- isWasi
1422- ? BuiltinNames . wasiSeed
1423- : BuiltinNames . seed
1424- ) ;
1406+ globalAliases . set ( CommonNames . seed , BuiltinNames . seed ) ;
14251407 }
14261408 if ( ! globalAliases . has ( CommonNames . Math ) ) {
14271409 globalAliases . set ( CommonNames . Math , CommonNames . NativeMath ) ;
0 commit comments