convert-source-map icon indicating copy to clipboard operation
convert-source-map copied to clipboard

What is the expected return of the `readMap` arguments when the source map doesn't exist?

Open ericmorand-sonarsource opened this issue 1 year ago • 1 comments

Methods fromMapFileComment and fromMapFileSource take a readMap function as second argument, that is expected to return either a string or a Promise of a string. But it is not clear how this method is supposed to behave when the passed file doesn't exist?

Should it throw? Or return null?

ericmorand-sonarsource avatar Jul 02 '24 09:07 ericmorand-sonarsource