mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
@@ -70,7 +70,7 @@ function ensureBuffer(o) {
|
||||
} else if (typeof o !== "string") {
|
||||
o = ""+o;
|
||||
}
|
||||
return new Buffer(o);
|
||||
return Buffer.from(o);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user