asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 148 forks source link

empty statements are allowed #97

Closed soliton4 closed 9 years ago

soliton4 commented 9 years ago

emptyStatements are allowed in asm.js

    for (line = 0; (line|0) < (width|0); line = ((line|0) + 1)|0){
      for (line = 0; (line|0) < (width|0); line = ((line|0) + 1)|0){

      };
    };

reproduces the error

sunfishcode commented 9 years ago

Merged. And I added a testcase in 99b37ead6011b0e72d6fbe9499fb374d1477f68e. Thanks for the patch!

soliton4 commented 9 years ago

thank you for the test case. i was not familiar with the testing system.