Uh oh!
There was an error while loading. Please reload this page.
Fix #302 - #303
Conversation
| node.add(code); | ||
| } else { | ||
| var source = aRelativePath | ||
| var source = aRelativePath && mapping.source |
There was a problem hiding this comment.
I suspect that in the case where aRelativePath is non-null and mapping.source is null, that this should evaluate to aRelativePath.
So maybe this ought to be fixed in util.join instead; that function already tries to handle the empty string, changing it to handle null and/or undefined as well seems reasonable.
What do you think?
There was a problem hiding this comment.
That makes sense. I will change that and push up the new change soon.
There was a problem hiding this comment.
This pr has been open for a long time, what is the current status? is it still relevant?
There was a problem hiding this comment.
I think the bug still exists, but this patch still needs an update and a test case.
nholland94
commented
Apr 29, 2018
I apologize for the lack of update on this in so long. I had forgotten about this, but the new comments notified my and reminded me of this. I moved the check for undefined mapping source into the util.join function as originally discussed. |
jasonLaster
commented
May 7, 2018
Ping @nholland94 do you think you could help add a test? |
Do we know where the |
loganfsmyth
commented
Nov 15, 2018
nikolay-borzov
commented
Nov 30, 2019
|
Fixes#302 by adding an extra check for null sources.