test: remove deprecated Buffer usage in sourcemap test (#25805)

PR Close #25805
This commit is contained in:
Rob Wormald 2018-09-04 10:48:12 -07:00 committed by Misko Hevery
parent 1e7a873cf4
commit 51c26b8afb
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ describe('sourcemaps', function() {
const marker = '//# sourceMappingURL=data:application/json;base64,';
const index = content.indexOf(marker);
const sourceMapData =
new Buffer(content.substring(index + marker.length), 'base64').toString('utf8');
Buffer.from(content.substring(index + marker.length), 'base64').toString('utf8');
const decoder = new sourceMap.SourceMapConsumer(JSON.parse(sourceMapData));