From 27d844f02cae7b3165bbc6eb1d1c7706d21e7ed1 Mon Sep 17 00:00:00 2001 From: ashaffer Date: Wed, 11 Dec 2013 12:30:20 -0800 Subject: [PATCH] should not return a url when we have a dataUrl --- source-map-support.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source-map-support.js b/source-map-support.js index dcb5351..afe06c7 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -69,6 +69,7 @@ var retrieveSourceMap = function (source) { if (sourceMappingURL.slice(0, dataUrlPrefix.length).toLowerCase() == dataUrlPrefix) { // Support source map URL as a data url sourceMapData = new Buffer(sourceMappingURL.slice(dataUrlPrefix.length), "base64").toString(); + sourceMappingURL = null; } else { // Support source map URLs relative to the source URL var dir = path.dirname(source);