We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
4.0 - 4.4 | 5.0 - 5.9
1 parent 93663af commit 4d24a07Copy full SHA for 4d24a07
test/vector.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-var bFrom = Buffer.from || function (a, b) { return new Buffer(a, b); };
+var bFrom = Buffer.from && Buffer.from.length > 1 ? Buffer.from : function (a, b) { return new Buffer(a, b); };
4
5
module.exports = {
6
p: bFrom('86F5CA03DCFEB225063FF830A0C769B9DD9D6153AD91D7CE27F787C43278B447E6533B86B18BED6E8A48B784A14C252C5BE0DBF60B86D6385BD2F12FB763ED8873ABFD3F5BA2E0A8C0A59082EAC056935E529DAF7C610467899C77ADEDFC846C881870B7B19B2B58F9BE0521A17002E3BDD6B86685EE90B3D9A1B02B782B1779', 'hex'),
0 commit comments