mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-22 09:29:38 +00:00
Replace new Buffer() constructor calls (#69)
This commit is contained in:
@@ -627,9 +627,9 @@ exports.dumparr = function (arr, offset, count) {
|
||||
}
|
||||
|
||||
exports.btoa = function (arr) {
|
||||
return new Buffer(arr, 'binary').toString('base64');
|
||||
return Buffer.from(arr, 'binary').toString('base64');
|
||||
}
|
||||
|
||||
exports.atob = function (base64) {
|
||||
return new Buffer(base64, 'base64').toString('binary');
|
||||
return Buffer.from(base64, 'base64').toString('binary');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user