From c58dc886c98c1151967a786b984d9c2c034a152b Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 Jan 2018 15:01:57 +1100 Subject: src/: Import lzio using destructured assignment --- src/ldo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ldo.js') diff --git a/src/ldo.js b/src/ldo.js index ce8f7bc..b138e47 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -45,7 +45,7 @@ const ltm = require('./ltm.js'); const { LUAI_MAXSTACK } = require('./luaconf.js'); const lundump = require('./lundump.js'); const lvm = require('./lvm.js'); -const lzio = require('./lzio.js'); +const { MBuffer } = require('./lzio.js'); const adjust_top = function(L, newtop) { if (L.top < newtop) { @@ -692,7 +692,7 @@ const luaD_callnoyield = function(L, off, nResults) { class SParser { constructor(z, name, mode) { /* data to 'f_parser' */ this.z = z; - this.buff = new lzio.MBuffer(); /* dynamic structure used by the scanner */ + this.buff = new MBuffer(); /* dynamic structure used by the scanner */ this.dyd = new lparser.Dyndata(); /* dynamic structures used by the parser */ this.mode = mode; this.name = name; -- cgit v1.2.3-54-g00ecf