fix(dev-infra): update type castings for JSON.parse usage (#40710)
Update usages of JSON.parse to be cast as specific types. PR Close #40710
This commit is contained in:
committed by
Alex Rickabaugh
parent
2c90391d4b
commit
cbdb5e208e
@@ -42,7 +42,6 @@ describe('sourcemaps', function() {
|
||||
Buffer.from(content.substring(index + marker.length), 'base64').toString('utf8');
|
||||
|
||||
const decoder = new SourceMapConsumer(JSON.parse(sourceMapData) as RawSourceMap);
|
||||
|
||||
const originalPosition = decoder.originalPositionFor({line: errorLine, column: errorColumn});
|
||||
const sourceCodeLines = readFileSync(require.resolve('../../src/sourcemap/index.ts'), {
|
||||
encoding: 'UTF-8'
|
||||
|
||||
Reference in New Issue
Block a user