summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-02 13:44:17 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-02 13:45:55 +1000
commit6cc7171dd51d0783c3ab4b0b8fa354af51aa2d20 (patch)
tree640a76884bac37d07af6b5a52945c6bd703ec6c1 /src/lauxlib.js
parentcd06f8d388814a1916f2db0814137e519170373c (diff)
downloadfengari-6cc7171dd51d0783c3ab4b0b8fa354af51aa2d20.tar.gz
fengari-6cc7171dd51d0783c3ab4b0b8fa354af51aa2d20.tar.bz2
fengari-6cc7171dd51d0783c3ab4b0b8fa354af51aa2d20.zip
src/lauxlib.js: Use non-deprecated Buffer constructor
Diffstat (limited to 'src/lauxlib.js')
-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);