We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d894d0 commit 2f12c7fCopy full SHA for 2f12c7f
1 file changed
src/program.ts
@@ -1485,7 +1485,8 @@ export class Function extends Element {
1485
/** Frees the temporary local for reuse. */
1486
freeTempLocal(local: Local): void {
1487
var temps: Local[];
1488
- switch (local.type.toNativeType()) {
+ assert(local.type != null);
1489
+ switch ((<Type>local.type).toNativeType()) {
1490
case NativeType.I32: temps = this.tempI32s || (this.tempI32s = []); break;
1491
case NativeType.I64: temps = this.tempI64s || (this.tempI64s = []); break;
1492
case NativeType.F32: temps = this.tempF32s || (this.tempF32s = []); break;
0 commit comments