Skip to content

Commit b2934e9

Browse files
committed
Fixed deprecated use of new Buffer in tests
- the recommended replacement is `Buffer.alloc`, which is compatible with Node 10 - 17
1 parent c5ed10b commit b2934e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/issue-108.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('buffer', function() {
1717
throw err;
1818
});
1919

20-
var buff = new Buffer(2);
20+
var buff = Buffer.alloc(2);
2121
stmt.run(buff);
2222
stmt.finalize();
2323
});

0 commit comments

Comments
 (0)