Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
c2d0923d
Commit
c2d0923d
authored
Jan 15, 2026
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update comments
parent
c0bdf8a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
patch-error-inspect.ts
packages/next/src/server/patch-error-inspect.ts
+5
-2
No files found.
packages/next/src/server/patch-error-inspect.ts
View file @
c2d0923d
...
...
@@ -146,6 +146,11 @@ function isFunctionNameAtPosition(
/**
* Lazily build and cache name mappings from a source map.
*
* Ideally we would use `getOriginalPositionFor`/`getGeneratedPositionFor` instead
* of maintaining our own map and iterating all mappings, but there is a bug in the
* source-map library that prevents us from using these APIs on IndexedSourceMaps, so
* we need ot build our own datastructure.
*/
function
getNameMappings
(
entry
:
SourceMapCacheEntry
):
NameMappingsByLine
{
if
(
!
entry
.
nameMappings
)
{
...
...
@@ -206,7 +211,6 @@ function findNameAtPosition(
endIdx
=
mid
}
}
// Check the first entry at or after the enclosing position
if
(
startIdx
<
lineEntries
.
length
)
{
const
entry
=
lineEntries
[
startIdx
]
...
...
@@ -218,7 +222,6 @@ function findNameAtPosition(
return
entry
.
name
}
}
return
undefined
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment