fix jshint redef Promise errors