Merge pull request #9742 from AbhimanyuVashisht/remove-new-buffer

Replace deprecated new Buffer(string) constructor with Buffer.from(string)
This commit is contained in:
Tim van der Meij 2018-05-20 17:21:04 +02:00 committed by GitHub
commit b7a3a5e7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ function createStringSource(filename, content) {
source._read = function () {
this.push(new Vinyl({
path: filename,
contents: new Buffer(content),
contents: Buffer.from(content),
}));
this.push(null);
};