Skip to content

Commit 4d24a07

Browse files
committed
[Tests] fix tests in node 4.0 - 4.4 | 5.0 - 5.9
1 parent 93663af commit 4d24a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/vector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var bFrom = Buffer.from || function (a, b) { return new Buffer(a, b); };
3+
var bFrom = Buffer.from && Buffer.from.length > 1 ? Buffer.from : function (a, b) { return new Buffer(a, b); };
44

55
module.exports = {
66
p: bFrom('86F5CA03DCFEB225063FF830A0C769B9DD9D6153AD91D7CE27F787C43278B447E6533B86B18BED6E8A48B784A14C252C5BE0DBF60B86D6385BD2F12FB763ED8873ABFD3F5BA2E0A8C0A59082EAC056935E529DAF7C610467899C77ADEDFC846C881870B7B19B2B58F9BE0521A17002E3BDD6B86685EE90B3D9A1B02B782B1779', 'hex'),

0 commit comments

Comments
 (0)