make enclose & wrap work with sourceMap (#3396)

fixes #3313
This commit is contained in:
Alex Lam S.L
2019-05-04 20:25:52 +08:00
committed by GitHub
parent 11cdab745d
commit 354fec8a9c
6 changed files with 43 additions and 34 deletions

View File

@@ -365,7 +365,7 @@ describe("minify", function() {
wrap: 'exports',
});
if (result.error) throw result.error;
assert.strictEqual(result.code, '(function(window,undefined){(function(exports){function enclose(){console.log("test enclose")}enclose()})(typeof exports=="undefined"?exports={}:exports)})(window);');
assert.strictEqual(result.code, '(function(exports){(function(window,undefined){function enclose(){console.log("test enclose")}enclose()})(window)})(typeof exports=="undefined"?exports={}:exports);');
});
});
});