标签: javascript google-closure-compiler coercion
编译器在转换为整数的布尔值上表现不佳吗?
/** * @type {boolean} */ var isFirstCall = true; handler(); handler(); handler(); function handler () { if (isFirstCall --> false) { // this runs once; isFirstCall and false were coerced to integers } }