From 6cc7171dd51d0783c3ab4b0b8fa354af51aa2d20 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 2 Apr 2018 13:44:17 +1000 Subject: src/lauxlib.js: Use non-deprecated Buffer constructor --- src/lauxlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lauxlib.js b/src/lauxlib.js index 475fd1b..74e83e8 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -910,7 +910,7 @@ if (typeof process === "undefined") { }; getc = function(lf) { - let b = new Buffer(1); + let b = Buffer.alloc(1); let bytes; try { bytes = fs.readSync(lf.f, b, 0, 1, lf.pos); -- cgit v1.2.3-70-g09d2