Skip to content

Commit 224090c

Browse files
committed
Merge branch 'feat/separate-source-reading' into node/refactor-stack-parsing
2 parents 069244f + bd85ce9 commit 224090c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/node/src/integrations/contextlines.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { NodeClient } from '../client';
99
const FILE_CONTENT_CACHE = new LRUMap<string, string | null>(100);
1010
const DEFAULT_LINES_OF_CONTEXT = 7;
1111

12+
// TODO: Replace with promisify when minimum supported node >= v8
1213
function readTextFileAsync(path: string): Promise<string> {
1314
return new Promise((resolve, reject) => {
1415
readFile(path, 'utf8', (err, data) => {
@@ -28,10 +29,11 @@ export function resetFileContentCache(): void {
2829

2930
interface ContextLinesOptions {
3031
/**
31-
* Sets the number of context lines for each frame when loading a file
32+
* Sets the number of context lines for each frame when loading a file.
33+
* Defaults to 7.
3234
*
3335
* Set to 0 to disable loading and inclusion of source files.
34-
* */
36+
**/
3537
frameContextLines?: number;
3638
}
3739

0 commit comments

Comments
 (0)