summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
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);