Merge pull request #9742 from AbhimanyuVashisht/remove-new-buffer
Replace deprecated new Buffer(string) constructor with Buffer.from(string)
This commit is contained in:
commit
b7a3a5e7e4
@ -124,7 +124,7 @@ function createStringSource(filename, content) {
|
|||||||
source._read = function () {
|
source._read = function () {
|
||||||
this.push(new Vinyl({
|
this.push(new Vinyl({
|
||||||
path: filename,
|
path: filename,
|
||||||
contents: new Buffer(content),
|
contents: Buffer.from(content),
|
||||||
}));
|
}));
|
||||||
this.push(null);
|
this.push(null);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user