Skip to content

Commit

Permalink
fix typo in test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Feb 9, 2019
1 parent 09939c6 commit e4426a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -322,7 +322,7 @@ function _copyObject(to, from) {
function makeSysBuffer(a, b, c) {
// node-v4.4 and v5.8 had a weird from() that broke on strings with "not a typed array" error
if (nodeVersion < 10) return new SysBuffer(a, b, c);
return (typeof a === 'number') ? SysBuffer.alloc(a) : sysBuffer.from(a, b, c);
return (typeof a === 'number') ? SysBuffer.alloc(a) : SysBuffer.from(a, b, c);
}

function setVersion(ver) {
Expand Down

0 comments on commit e4426a8

Please sign in to comment.