[js] use macro to silense compiler warning