Skip to content

Commit

Permalink
move test files
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Dec 3, 2024
1 parent 7d917e0 commit e5df5f1
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { setTimeout } from 'timers/promises'

export default async function Page() {
await helper()
return null
}

async function helper() {
await now(async () => {
await setTimeout(500)
await nestedHelper()
})
}

async function nestedHelper() {
await now(async () => {
await setTimeout(500)
throws()
})
}

function throws() {
throw new Error('kaboom')
}

async function now(cb) {
await cb()
}

// throws

// <anonymous> (at nestedHelper)
// now
// nestedHelper

// <anonymous> (at helper)
// now
// helper

// Page

0 comments on commit e5df5f1

Please sign in to comment.