Closed amadanmath closed 9 years ago
If the code includes an if, the validator errors out, due to this line in Vp.ifStatement:
if
Vp.ifStatement
this.checkSubtype(this.expression(test), types.boolish, "if test", test.loc);
The variable types does not exist. I believe one wants ty instead; and ty does not contain boolish nor Boolish. It was probably missed in 182e4b9efe556f205e33be1f9357938a41ebbbe3 and should be ty.Intish?
types
ty
boolish
Boolish
ty.Intish
@amadanmath fixed it:
https://github.com/dherman/asm.js/pull/96
The fix is merged.
If the code includes an
if
, the validator errors out, due to this line inVp.ifStatement
:The variable
types
does not exist. I believe one wantsty
instead; andty
does not containboolish
norBoolish
. It was probably missed in 182e4b9efe556f205e33be1f9357938a41ebbbe3 and should bety.Intish
?