-
Notifications
You must be signed in to change notification settings - Fork 27.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d917e0
commit e5df5f1
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
test/e2e/app-dir/next-after-app/app/error-overlay/nested-no-after/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.
File renamed without changes.