test: remove deprecated Buffer usage in sourcemap test (#25805)
PR Close #25805
This commit is contained in:
parent
1e7a873cf4
commit
51c26b8afb
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue