Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Generator.prototype.addSourceContent = function (sourceFile, sourcesContent) {
*/
Generator.prototype.base64Encode = function () {
var map = this.toString();
return new Buffer(map).toString('base64');
return Buffer.from(map).toString('base64');
};

/**
Expand Down
2 changes: 1 addition & 1 deletion test/inline-source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var bar = '' + function bar () {
}

function decode(base64) {
return new Buffer(base64, 'base64').toString();
return Buffer.from(base64, 'base64').toString();
}

function inspect(obj, depth) {
Expand Down
2 changes: 1 addition & 1 deletion test/source-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var bar = '' + function bar () {
}

function decode(base64) {
return new Buffer(base64, 'base64').toString();
return Buffer.from(base64, 'base64').toString();
}

function inspect(obj, depth) {
Expand Down