Remove deprecated Buffer constructor usage

Fixes #1709
This commit is contained in:
Nick O'Leary
2018-10-24 13:45:34 +01:00
parent 7dcca2c907
commit e4d518749f
13 changed files with 26 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ function ensureBuffer(o) {
} else if (typeof o !== "string") {
o = ""+o;
}
return new Buffer(o);
return Buffer.from(o);
}
/**