mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Electroid <Electroid@users.noreply.github.com> Co-authored-by: Meghan Denny <meghan@bun.sh> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
10 lines
163 B
TypeScript
10 lines
163 B
TypeScript
import axios from "axios";
|
|
|
|
async function foo() {
|
|
const res = await axios.get("http://example.com");
|
|
|
|
throw new Error("potato");
|
|
}
|
|
|
|
console.log(await foo());
|