fixed 'TypeError: Promise.resolve is not a constructor' in Firefox