Commit 3be4c743 authored by Luke Sandberg's avatar Luke Sandberg

remove logging changes

parent f0fbc02f
...@@ -374,9 +374,7 @@ function getSourcemappedFrameIfPossible( ...@@ -374,9 +374,7 @@ function getSourcemappedFrameIfPossible(
} }
let maybeSourceMapPayload: ModernSourceMapPayload | undefined let maybeSourceMapPayload: ModernSourceMapPayload | undefined
try { try {
console.error('looking up source map for ', sourceURL)
const sourceMap = nativeFindSourceMap(sourceURL) const sourceMap = nativeFindSourceMap(sourceURL)
console.error('\tfound source map')
maybeSourceMapPayload = sourceMap?.payload maybeSourceMapPayload = sourceMap?.payload
} catch (cause) { } catch (cause) {
// We should not log an actual error instance here because that will re-enter // We should not log an actual error instance here because that will re-enter
...@@ -395,12 +393,10 @@ function getSourcemappedFrameIfPossible( ...@@ -395,12 +393,10 @@ function getSourcemappedFrameIfPossible(
// source map. // source map.
return createUnsourcemappedFrame(frame) return createUnsourcemappedFrame(frame)
} }
console.error('1: maybeSourceMapPayload=', maybeSourceMapPayload)
if (maybeSourceMapPayload === undefined) { if (maybeSourceMapPayload === undefined) {
maybeSourceMapPayload = bundlerFindSourceMapPayload(sourceURL) maybeSourceMapPayload = bundlerFindSourceMapPayload(sourceURL)
} }
console.error('2: maybeSourceMapPayload=', maybeSourceMapPayload)
if (maybeSourceMapPayload === undefined) { if (maybeSourceMapPayload === undefined) {
return createUnsourcemappedFrame(frame) return createUnsourcemappedFrame(frame)
} }
...@@ -412,13 +408,11 @@ function getSourcemappedFrameIfPossible( ...@@ -412,13 +408,11 @@ function getSourcemappedFrameIfPossible(
// relative paths but is actually wrong (the chunk and sourcemap have different content hashes). // relative paths but is actually wrong (the chunk and sourcemap have different content hashes).
// We are using the node API to read the sourcemap and it doesn't give us access to the URI. // We are using the node API to read the sourcemap and it doesn't give us access to the URI.
const sourceMapURL = sourceURL + '.map' const sourceMapURL = sourceURL + '.map'
console.error('about to parse sourcemap for ', sourceURL)
sourceMapConsumer = new SyncSourceMapConsumer( sourceMapConsumer = new SyncSourceMapConsumer(
sourceMapPayload, sourceMapPayload,
// @ts-expect-error: our typings don't include this parameter but it is here. // @ts-expect-error: our typings don't include this parameter but it is here.
sourceMapURL sourceMapURL
) )
console.error('\tparsed source map')
} catch (cause) { } catch (cause) {
// We should not log an actual error instance here because that will re-enter // We should not log an actual error instance here because that will re-enter
// this codepath during error inspection and could lead to infinite recursion. // this codepath during error inspection and could lead to infinite recursion.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment