drowsy-probius / twitch-icon-selector

Error objects should be used as Promise rejection reasons JS-0114
Anti-pattern
Major
a year ago2 years old
Expected the Promise rejection reason to be an Error.
 2  return new Promise((resolve, reject) => {
 3    const timeout = 2000;
 4    setTimeout(() => {
 5      reject(false); 6    }, timeout);
 7
 8    const intv = setInterval(async () => {