Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
JS: ¿son necesarios los intentos/capturas internos?

archivo js helpers exportado

 export const foo1 = async () => { const url = "www.foo.com"; try { response = await fetch(url, { method: 'POST'}); } catch (e) { throw new Error(`return another error:${e}`); } if (response) { const responseText = await response.text(); const blob = responseText.toBlob(); return blob; } }

archivo js principal

Si importo la función foo1 aquí y la pongo en un intento/captura:

 try { this.fooData = await foo1(); } catch(e) { this.error = e }

¿Puedo eliminar el intento/atrapar de la búsqueda de foo1 ? ¿Es ahora innecesario ya que tengo uno en la función principal que invoca a foo1 ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!