File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1516,7 +1516,6 @@ export class Compiler extends DiagnosticEmitter {
15161516 }
15171517 var ref = i64_add ( stringSegment . offset , i64_new ( rtHeaderSize ) ) ;
15181518 this . currentType = stringInstance . type ;
1519- var ptr : ExpressionRef ;
15201519 if ( this . options . isWasm64 ) {
15211520 return module . i64 ( i64_low ( ref ) , i64_high ( ref ) ) ;
15221521 } else {
@@ -7614,7 +7613,6 @@ export class Compiler extends DiagnosticEmitter {
76147613 let arraySegment = this . ensureStaticArrayHeader ( elementType , bufferSegment ) ;
76157614 let arrayAddress = i64_add ( arraySegment . offset , i64_new ( runtimeHeaderSize ) ) ;
76167615 this . currentType = arrayType ;
7617- let ptr : ExpressionRef ;
76187616 if ( program . options . isWasm64 ) {
76197617 return module . i64 ( i64_low ( arrayAddress ) , i64_high ( arrayAddress ) ) ;
76207618 } else {
Original file line number Diff line number Diff line change @@ -1832,7 +1832,7 @@ export class Relooper {
18321832// helpers
18331833// can't do stack allocation here: STACKTOP is a global in WASM but a hidden variable in asm.js
18341834
1835- function allocU8Array ( u8s : u8 [ ] | null ) : usize {
1835+ function allocU8Array ( u8s : Uint8Array | null ) : usize {
18361836 if ( ! u8s ) return 0 ;
18371837 var numValues = u8s . length ;
18381838 var ptr = memory . allocate ( numValues ) ;
You can’t perform that action at this time.
0 commit comments